From caaf83eaa0c2df9ef4049f986fcbc0d8df56d09a Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 17 Mar 2017 22:43:28 +0100 Subject: [PATCH] mpdclient: remove unused function compare_filelistentry_format() --- src/mpdclient.c | 25 ------------------------- src/mpdclient.h | 6 ------ 2 files changed, 31 deletions(-) diff --git a/src/mpdclient.c b/src/mpdclient.c index f0076b6..548ff59 100644 --- a/src/mpdclient.c +++ b/src/mpdclient.c @@ -35,31 +35,6 @@ #define BUFSIZE 1024 -/* sort by song format */ -gint -compare_filelistentry_format(gconstpointer filelist_entry1, - gconstpointer filelist_entry2, - const char *song_format) -{ - const struct mpd_entity *e1 = - ((const struct filelist_entry *)filelist_entry1)->entity; - const struct mpd_entity *e2 = - ((const struct filelist_entry *)filelist_entry2)->entity; - - int n = 0; - if (e1 && e2 && - mpd_entity_get_type(e1) == MPD_ENTITY_TYPE_SONG && - mpd_entity_get_type(e2) == MPD_ENTITY_TYPE_SONG) { - char key1[BUFSIZE], key2[BUFSIZE]; - strfsong(key1, BUFSIZE, song_format, mpd_entity_get_song(e1)); - strfsong(key2, BUFSIZE, song_format, mpd_entity_get_song(e2)); - n = strcmp(key1,key2); - } - - return n; -} - - /****************************************************************************/ /*** mpdclient functions ****************************************************/ /****************************************************************************/ diff --git a/src/mpdclient.h b/src/mpdclient.h index f7ec926..9314f7a 100644 --- a/src/mpdclient.h +++ b/src/mpdclient.h @@ -186,10 +186,4 @@ mpdclient_playlist_update_changes(struct mpdclient *c); bool mpdclient_filelist_add_all(struct mpdclient *c, struct filelist *fl); -/* sort by song format */ -gcc_pure -gint compare_filelistentry_format(gconstpointer filelist_entry1, - gconstpointer filelist_entry2, - const char *song_format); - #endif -- 2.30.2