From: Max Kellermann Date: Sat, 3 Oct 2009 16:26:51 +0000 (+0200) Subject: mpdclient: removed mpdclient_filelist_search() X-Git-Tag: release-0.16~200 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=1ba8b24320c55e066bff0f212ceeba064622cdb3;p=ncmpc.git mpdclient: removed mpdclient_filelist_search() It's unused. --- diff --git a/src/mpdclient.c b/src/mpdclient.c index bbc8df8..c7b0168 100644 --- a/src/mpdclient.c +++ b/src/mpdclient.c @@ -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) { diff --git a/src/mpdclient.h b/src/mpdclient.h index d66bf5b..4b1b361 100644 --- a/src/mpdclient.h +++ b/src/mpdclient.h @@ -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);