From e9cd9c89ec016114d68a0253fa7bfb014091d9c0 Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Fri, 22 Jan 2010 17:51:09 +0100 Subject: [PATCH] throw away unused function (MediaLibrary::SortSongsByYear()) --- src/media_library.cpp | 5 ----- src/media_library.h | 1 - 2 files changed, 6 deletions(-) diff --git a/src/media_library.cpp b/src/media_library.cpp index 1fb2c3bb..270c6431 100644 --- a/src/media_library.cpp +++ b/src/media_library.cpp @@ -710,11 +710,6 @@ bool MediaLibrary::SearchConstraintsSorting::operator()(const SearchConstraints 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) { if (a->GetDisc() == b->GetDisc()) diff --git a/src/media_library.h b/src/media_library.h index 35270c29..52d9dc38 100644 --- a/src/media_library.h +++ b/src/media_library.h @@ -87,7 +87,6 @@ class MediaLibrary : public Screen static void DisplayAlbums(const SearchConstraints &, void *, Menu *); static bool SortSongsByTrack(MPD::Song *, MPD::Song *); - static bool SortSongsByYear(MPD::Song *, MPD::Song *); static bool hasTwoColumns; static size_t itsLeftColWidth;