summaryrefslogtreecommitdiff
path: root/apps/playlist.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/playlist.c')
-rw-r--r--apps/playlist.c13
1 files changed, 0 insertions, 13 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 */
2484bool playlist_checkend(int steps)
2485{
2486 struct playlist_info* playlist = &current_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 */
2497bool playlist_check(int steps) 2484bool playlist_check(int steps)
2498{ 2485{