throw away unused function (MediaLibrary::SortSongsByYear())

This commit is contained in:
Andrzej Rybczak
2010-01-22 17:51:09 +01:00
parent 95a649482b
commit e9cd9c89ec
2 changed files with 0 additions and 6 deletions

View File

@@ -710,11 +710,6 @@ bool MediaLibrary::SearchConstraintsSorting::operator()(const SearchConstraints
return (result == 0 ? cmp(a.Album, b.Album) : result) < 0; return (result == 0 ? cmp(a.Album, b.Album) : result) < 0;
} }
bool MediaLibrary::SortSongsByYear(Song *a, Song *b)
{
return a->GetDate() < b->GetDate();
}
bool MediaLibrary::SortSongsByTrack(Song *a, Song *b) bool MediaLibrary::SortSongsByTrack(Song *a, Song *b)
{ {
if (a->GetDisc() == b->GetDisc()) if (a->GetDisc() == b->GetDisc())

View File

@@ -87,7 +87,6 @@ class MediaLibrary : public Screen<Window>
static void DisplayAlbums(const SearchConstraints &, void *, Menu<SearchConstraints> *); static void DisplayAlbums(const SearchConstraints &, void *, Menu<SearchConstraints> *);
static bool SortSongsByTrack(MPD::Song *, MPD::Song *); static bool SortSongsByTrack(MPD::Song *, MPD::Song *);
static bool SortSongsByYear(MPD::Song *, MPD::Song *);
static bool hasTwoColumns; static bool hasTwoColumns;
static size_t itsLeftColWidth; static size_t itsLeftColWidth;