Code

mpdclient: removed mpdclient_filelist_search()
authorMax Kellermann <max@duempel.org>
Sat, 3 Oct 2009 16:26:51 +0000 (18:26 +0200)
committerMax Kellermann <max@duempel.org>
Sat, 3 Oct 2009 16:26:51 +0000 (18:26 +0200)
It's unused.

src/mpdclient.c
src/mpdclient.h

index bbc8df8eec88e79b28442ba3c7fb5d90bb4db68e..c7b016845ae1746bb3018e8128565d0ae9c5d02c 100644 (file)
@@ -744,23 +744,6 @@ mpdclient_recv_filelist_response(struct mpdclient *c)
        return filelist;
 }
 
-struct filelist *
-mpdclient_filelist_search(struct mpdclient *c,
-                         int exact_match,
-                         enum mpd_tag_type tag,
-                         gchar *filter_utf8)
-{
-       if (MPD_ERROR(c))
-               return NULL;
-
-       mpd_search_db_songs(c->connection, exact_match);
-       mpd_search_add_tag_constraint(c->connection, MPD_OPERATOR_DEFAULT,
-                                     tag, filter_utf8);
-       mpd_search_commit(c->connection);
-
-       return mpdclient_recv_filelist_response(c);
-}
-
 bool
 mpdclient_filelist_add_all(struct mpdclient *c, struct filelist *fl)
 {
index d66bf5b1ae5ba56f701f1bce6ec7bbc6d5d76f18..4b1b361083a89aec2801d77082d33968518b4446 100644 (file)
@@ -122,11 +122,6 @@ mpdclient_playlist_update_changes(struct mpdclient *c);
 struct filelist *
 mpdclient_filelist_get(struct mpdclient *c, const gchar *path);
 
-struct filelist *
-mpdclient_filelist_search(struct mpdclient *c, int exact_match,
-                         enum mpd_tag_type tag,
-                         gchar *filter_utf8);
-
 /* add all songs in filelist to the playlist */
 bool
 mpdclient_filelist_add_all(struct mpdclient *c, struct filelist *fl);