From f4c1c27ffb303a6de415fa2bd9bed7c4f9b909fb Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 25 Sep 2008 18:38:27 +0200 Subject: screen_search: removed version check from paint() method The check wasn't actually doing anything, except leaking memory. Remove it. --- src/screen_search.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/screen_search.c') diff --git a/src/screen_search.c b/src/screen_search.c index d29c7bf95..6942bf205 100644 --- a/src/screen_search.c +++ b/src/screen_search.c @@ -387,7 +387,7 @@ resize(int cols, int rows) } static void -paint(mpdclient_t *c) +paint(mpd_unused mpdclient_t *c) { if (browser.filelist) { browser.lw->flags = 0; @@ -396,10 +396,6 @@ paint(mpdclient_t *c) } else { browser.lw->flags = LW_HIDE_CURSOR; list_window_paint(browser.lw, lw_search_help_callback, NULL); - if( !MPD_VERSION_LT(c, 0, 12, 0) ) - g_strdup_printf("Advanced search disabled (MPD version < 0.12.0"); - // wmove(lw->w, 0, 0); - //wclrtobot(lw->w); } } -- cgit v1.2.3