mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 10:37:38 -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
|
* Delete track at specified index.
|
||||||
* we want to delete the current playing track.
|
|
||||||
*/
|
*/
|
||||||
int playlist_delete(struct playlist_info* playlist, int 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;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (index == PLAYLIST_DELETE_CURRENT)
|
|
||||||
index = playlist->index;
|
|
||||||
|
|
||||||
result = remove_track_unlocked(playlist, index, true);
|
result = remove_track_unlocked(playlist, index, true);
|
||||||
|
|
||||||
out:
|
out:
|
||||||
|
|
|
@ -60,10 +60,6 @@ enum {
|
||||||
PLAYLIST_INSERT_LAST_SHUFFLED = -7
|
PLAYLIST_INSERT_LAST_SHUFFLED = -7
|
||||||
};
|
};
|
||||||
|
|
||||||
enum {
|
|
||||||
PLAYLIST_DELETE_CURRENT = -1
|
|
||||||
};
|
|
||||||
|
|
||||||
struct playlist_control_cache {
|
struct playlist_control_cache {
|
||||||
enum playlist_command command;
|
enum playlist_command command;
|
||||||
int i1;
|
int i1;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue