From: Max Kellermann Date: Sat, 3 Oct 2009 17:19:46 +0000 (+0200) Subject: mpdclient: removed mpdclient_filelist_get() X-Git-Tag: release-0.16~192 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=55f27837b0edaea1fca2c5206bd895c058eaddae;p=ncmpc.git mpdclient: removed mpdclient_filelist_get() Not used anymore. --- 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);