diff options
author | Aidan MacDonald <amachronic@protonmail.com> | 2023-01-22 12:26:41 +0000 |
---|---|---|
committer | Aidan MacDonald <amachronic@protonmail.com> | 2023-01-29 07:32:26 -0500 |
commit | 2c4546ba99ee51a7e673f9dcb998ec4ac7c19d22 (patch) | |
tree | 12bcbce3c730d180aa5af44e3cca9caa7d567d20 | |
parent | d85f4b5e1c48399e084face42a8c9bd0ae1ba997 (diff) | |
download | rockbox-2c4546ba99.tar.gz rockbox-2c4546ba99.zip |
playlist: Remove unused PLAYLIST_DELETE_CURRENT
Change-Id: I4d1a8798aca249d343ca27a9973213d427b73963
-rw-r--r-- | apps/playlist.c | 6 | ||||
-rw-r--r-- | apps/playlist.h | 4 |
2 files changed, 1 insertions, 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; |