From 0840e1bf0bb33b0f2914a304c6066eccd07a3947 Mon Sep 17 00:00:00 2001 From: Steve Bavin Date: Mon, 7 Apr 2008 18:19:11 +0000 Subject: Remove unused playlist_checkend(), it really should never be needed. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17023 a1c6a512-1295-4272-9138-f99709370657 --- apps/playlist.c | 13 ------------- apps/playlist.h | 1 - 2 files changed, 14 deletions(-) diff --git a/apps/playlist.c b/apps/playlist.c index 373d2d534a..5f2062faeb 100644 --- a/apps/playlist.c +++ b/apps/playlist.c @@ -2480,19 +2480,6 @@ int playlist_start(int start_index, int offset) return 0; } -/* Returns false if 'steps' would pass end of playlist */ -bool playlist_checkend(int steps) -{ - struct playlist_info* playlist = ¤t_playlist; - - int index = get_next_index(playlist, steps, -1); - - if (index < 0 && steps >= 0 && global_settings.repeat_mode == REPEAT_SHUFFLE) - index = get_next_index(playlist, steps, REPEAT_ALL); - - return (index >= 0); -} - /* Returns false if 'steps' is out of bounds, else true */ bool playlist_check(int steps) { diff --git a/apps/playlist.h b/apps/playlist.h index a3ea225a5d..af9a09523f 100644 --- a/apps/playlist.h +++ b/apps/playlist.h @@ -119,7 +119,6 @@ int playlist_resume(void); int playlist_add(const char *filename); int playlist_shuffle(int random_seed, int start_index); int playlist_start(int start_index, int offset); -bool playlist_checkend(int steps); bool playlist_check(int steps); char *playlist_peek(int steps); int playlist_next(int steps); -- cgit v1.2.3