diff options
author | Steve Bavin <pondlife@pondlife.me> | 2008-04-07 18:19:11 +0000 |
---|---|---|
committer | Steve Bavin <pondlife@pondlife.me> | 2008-04-07 18:19:11 +0000 |
commit | 0840e1bf0bb33b0f2914a304c6066eccd07a3947 (patch) | |
tree | ff94fd1172f839920f9fb7bcc970dcdfa6f68921 | |
parent | 6ff8f6ae87fb1713675fc07bdb5c5e24485b250f (diff) | |
download | rockbox-0840e1bf0bb33b0f2914a304c6066eccd07a3947.tar.gz rockbox-0840e1bf0bb33b0f2914a304c6066eccd07a3947.zip |
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
-rw-r--r-- | apps/playlist.c | 13 | ||||
-rw-r--r-- | apps/playlist.h | 1 |
2 files changed, 0 insertions, 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) | |||
2480 | return 0; | 2480 | return 0; |
2481 | } | 2481 | } |
2482 | 2482 | ||
2483 | /* Returns false if 'steps' would pass end of playlist */ | ||
2484 | bool playlist_checkend(int steps) | ||
2485 | { | ||
2486 | struct playlist_info* playlist = ¤t_playlist; | ||
2487 | |||
2488 | int index = get_next_index(playlist, steps, -1); | ||
2489 | |||
2490 | if (index < 0 && steps >= 0 && global_settings.repeat_mode == REPEAT_SHUFFLE) | ||
2491 | index = get_next_index(playlist, steps, REPEAT_ALL); | ||
2492 | |||
2493 | return (index >= 0); | ||
2494 | } | ||
2495 | |||
2496 | /* Returns false if 'steps' is out of bounds, else true */ | 2483 | /* Returns false if 'steps' is out of bounds, else true */ |
2497 | bool playlist_check(int steps) | 2484 | bool playlist_check(int steps) |
2498 | { | 2485 | { |
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); | |||
119 | int playlist_add(const char *filename); | 119 | int playlist_add(const char *filename); |
120 | int playlist_shuffle(int random_seed, int start_index); | 120 | int playlist_shuffle(int random_seed, int start_index); |
121 | int playlist_start(int start_index, int offset); | 121 | int playlist_start(int start_index, int offset); |
122 | bool playlist_checkend(int steps); | ||
123 | bool playlist_check(int steps); | 122 | bool playlist_check(int steps); |
124 | char *playlist_peek(int steps); | 123 | char *playlist_peek(int steps); |
125 | int playlist_next(int steps); | 124 | int playlist_next(int steps); |