diff --git a/src/playlist.c b/src/playlist.c index 305951f..ace11d2 100644 --- a/src/playlist.c +++ b/src/playlist.c @@ -341,15 +341,6 @@ playlist_get_next(struct playlist *pl) return ((const char *)pl->list[pl->index++]); } -const char * -playlist_peek_next(struct playlist *pl) -{ - if (pl->program || pl->num == 0) - return (NULL); - - return ((const char *)pl->list[pl->index]); -} - void playlist_skip_next(struct playlist *pl) { @@ -378,17 +369,6 @@ playlist_get_position(struct playlist *pl) return ((unsigned long)pl->index); } -int -playlist_set_position(struct playlist *pl, unsigned long idx) -{ - if (pl->program || idx > pl->num - 1) - return (0); - - pl->index = (size_t)idx; - - return (1); -} - int playlist_goto_entry(struct playlist *pl, const char *entry) { diff --git a/src/playlist.h b/src/playlist.h index 80e72b4..3e8d711 100644 --- a/src/playlist.h +++ b/src/playlist.h @@ -60,13 +60,6 @@ const char * playlist_get_next(playlist_t); * and are no-ops (i.e. return failure) for playlists from playlist_program(). */ -/* - * Get the next item in the playlist without moving on to the following entry. - * Returns a NUL-terminated string of the next playlist entry, or NULL if the - * currently playing song is the last one in the list. - */ -const char * playlist_peek_next(playlist_t); - /* * Skip the playlist item that would be played next. */ @@ -82,11 +75,6 @@ unsigned long playlist_get_num_items(playlist_t); */ unsigned long playlist_get_position(playlist_t); -/* - * Set a position in the playlist. Returns 1 on success, and 0 on failure. - */ -int playlist_set_position(playlist_t, unsigned long /* index */); - /* * Search for a given entry in the playlist and reposition to it. Returns 1 on * success and 0 on failure. A subsequent call to playlist_get_next() will