From 2c4546ba99ee51a7e673f9dcb998ec4ac7c19d22 Mon Sep 17 00:00:00 2001 From: Aidan MacDonald Date: Sun, 22 Jan 2023 12:26:41 +0000 Subject: [PATCH] playlist: Remove unused PLAYLIST_DELETE_CURRENT Change-Id: I4d1a8798aca249d343ca27a9973213d427b73963 --- apps/playlist.c | 6 +----- apps/playlist.h | 4 ---- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/apps/playlist.c b/apps/playlist.c index 1115d9a4e1..ccceb4db7b 100644 --- a/apps/playlist.c +++ b/apps/playlist.c @@ -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: diff --git a/apps/playlist.h b/apps/playlist.h index f97244322b..006688d2f5 100644 --- a/apps/playlist.h +++ b/apps/playlist.h @@ -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;