Code

mpdclient: removed mpdclient_filelist_get()
authorMax Kellermann <max@duempel.org>
Sat, 3 Oct 2009 17:19:46 +0000 (19:19 +0200)
committerMax Kellermann <max@duempel.org>
Sat, 3 Oct 2009 17:19:46 +0000 (19:19 +0200)
Not used anymore.

src/mpdclient.c
src/mpdclient.h

index d8557159ffb7e9fa667285e4a1a964ffd7cf58d2..1abc529a018e1024d62be5381d821322ffaae8e4 100644 (file)
@@ -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)
 {
index 4b1b361083a89aec2801d77082d33968518b4446..789ccb42ca3d2e6613967356f01b4612ac0eb8d9 100644 (file)
@@ -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);