From 55f27837b0edaea1fca2c5206bd895c058eaddae Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 3 Oct 2009 19:19:46 +0200 Subject: [PATCH] mpdclient: removed mpdclient_filelist_get() Not used anymore. --- src/mpdclient.c | 36 ------------------------------------ src/mpdclient.h | 6 ------ 2 files changed, 42 deletions(-) diff --git a/src/mpdclient.c b/src/mpdclient.c index d855715..1abc529 100644 --- a/src/mpdclient.c +++ b/src/mpdclient.c @@ -678,42 +678,6 @@ mpdclient_playlist_update_changes(struct mpdclient *c) /*** Filelist functions *****************************************************/ /****************************************************************************/ -static struct filelist * -mpdclient_recv_filelist_response(struct mpdclient *c); - -struct filelist * -mpdclient_filelist_get(struct mpdclient *c, const gchar *path) -{ - struct filelist *filelist; - - if (MPD_ERROR(c)) - return NULL; - - mpd_send_list_meta(c->connection, path); - filelist = mpdclient_recv_filelist_response(c); - if (filelist == NULL) - return NULL; - - filelist_sort_dir_play(filelist, compare_filelist_entry_path); - - return filelist; -} - -static struct filelist * -mpdclient_recv_filelist_response(struct mpdclient *c) -{ - struct filelist *filelist; - - filelist = filelist_new_recv(c->connection); - - if (!mpdclient_finish_command(c)) { - filelist_free(filelist); - return NULL; - } - - return filelist; -} - bool mpdclient_filelist_add_all(struct mpdclient *c, struct filelist *fl) { diff --git a/src/mpdclient.h b/src/mpdclient.h index 4b1b361..789ccb4 100644 --- a/src/mpdclient.h +++ b/src/mpdclient.h @@ -116,12 +116,6 @@ mpdclient_playlist_update(struct mpdclient *c); bool mpdclient_playlist_update_changes(struct mpdclient *c); - -/*** filelist functions ***************************************************/ - -struct filelist * -mpdclient_filelist_get(struct mpdclient *c, const gchar *path); - /* add all songs in filelist to the playlist */ bool mpdclient_filelist_add_all(struct mpdclient *c, struct filelist *fl); -- 2.30.2