playlist: Remove unused PLAYLIST_DELETE_CURRENT

Change-Id: I4d1a8798aca249d343ca27a9973213d427b73963
This commit is contained in:
Aidan MacDonald 2023-01-22 12:26:41 +00:00
parent d85f4b5e1c
commit 2c4546ba99
2 changed files with 1 additions and 9 deletions

View file

@ -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:

View file

@ -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;