1
0
mirror of https://gitlab.xiph.org/xiph/ezstream.git synced 2024-11-03 04:17:18 -05:00

Remove unneeded functionality

This commit is contained in:
Moritz Grimm 2015-05-27 00:19:40 +02:00
parent bf4150dcce
commit 74dce6af5b
2 changed files with 0 additions and 32 deletions

View File

@ -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)
{

View File

@ -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