mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
playlist: Remove unused PLAYLIST_DELETE_CURRENT
Change-Id: I4d1a8798aca249d343ca27a9973213d427b73963
This commit is contained in:
parent
d85f4b5e1c
commit
2c4546ba99
2 changed files with 1 additions and 9 deletions
|
@ -2335,8 +2335,7 @@ void playlist_close(struct playlist_info* playlist)
|
|||
}
|
||||
|
||||
/*
|
||||
* Delete track at specified index. If index is PLAYLIST_DELETE_CURRENT then
|
||||
* we want to delete the current playing track.
|
||||
* Delete track at specified index.
|
||||
*/
|
||||
int playlist_delete(struct playlist_info* playlist, int index)
|
||||
{
|
||||
|
@ -2355,9 +2354,6 @@ int playlist_delete(struct playlist_info* playlist, int index)
|
|||
goto out;
|
||||
}
|
||||
|
||||
if (index == PLAYLIST_DELETE_CURRENT)
|
||||
index = playlist->index;
|
||||
|
||||
result = remove_track_unlocked(playlist, index, true);
|
||||
|
||||
out:
|
||||
|
|
|
@ -60,10 +60,6 @@ enum {
|
|||
PLAYLIST_INSERT_LAST_SHUFFLED = -7
|
||||
};
|
||||
|
||||
enum {
|
||||
PLAYLIST_DELETE_CURRENT = -1
|
||||
};
|
||||
|
||||
struct playlist_control_cache {
|
||||
enum playlist_command command;
|
||||
int i1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue