libsaria: Remove unused find_nth_playlist() function
I improve get_playlist() instead Signed-off-by: Bryan Schumaker <bjschuma@gmail.com>
This commit is contained in:
parent
7f52d81d12
commit
7dab47783b
|
@ -35,20 +35,6 @@ static void renumber_playlists()
|
|||
(*it)->renumber(n++);
|
||||
}
|
||||
|
||||
libsaria::Playlist *find_nth_plist(unsigned int n)
|
||||
{
|
||||
list<libsaria::Playlist *>::iterator it;
|
||||
|
||||
if (n >= playlist_deck.size())
|
||||
return NULL;
|
||||
|
||||
it = playlist_deck.begin();
|
||||
for (unsigned int i = 0; i < n; i++)
|
||||
it++;
|
||||
|
||||
return *it;
|
||||
}
|
||||
|
||||
static void check_pause()
|
||||
{
|
||||
switch(pause_type) {
|
||||
|
@ -156,11 +142,15 @@ namespace libsaria
|
|||
Playlist *deck::get_playlist(unsigned int n)
|
||||
{
|
||||
list<libsaria::Playlist *>::iterator it;
|
||||
for (it = playlist_deck.begin(); it != playlist_deck.end(); it++) {
|
||||
if ((*it)->get_number() == n)
|
||||
return (*it);
|
||||
}
|
||||
return NULL;
|
||||
|
||||
if (n >= playlist_deck.size())
|
||||
return NULL;
|
||||
|
||||
it = playlist_deck.begin();
|
||||
for (unsigned int i = 0; i < n; i++)
|
||||
it++;
|
||||
|
||||
return *it;
|
||||
}
|
||||
|
||||
void deck::tracks_removed(list<Track> &tracks)
|
||||
|
|
Loading…
Reference in New Issue