libsaria: Move list size function

It now exists with my new playlist code, since I'm phasing out the old
code.
This commit is contained in:
Bryan Schumaker 2011-12-29 12:28:00 -05:00
parent 5dcfac8be2
commit fea84b90ac
2 changed files with 9 additions and 7 deletions

View File

@ -152,11 +152,4 @@ namespace libsaria
libsaria::audio::stop();
}
unsigned int library::size()
{
if (index::is_filtered() == true)
return index::size();
return play_list.size();
}
}; /* Namespace: libsaria */

View File

@ -1,5 +1,7 @@
#include <libsaria/track.h>
#include <libsaria/index.h>
#include <libsaria/library.h>
#include <libsaria/print.h>
#include "list.h"
@ -27,4 +29,11 @@ namespace libsaria
track_list.sort(compare_tracks);
}
unsigned int library::size()
{
if (index::is_filtered() == true)
return index::size();
return track_list.size();
}
}