From: Max Kellermann Date: Thu, 25 Sep 2008 16:38:27 +0000 (+0200) Subject: screen_search: removed version check from paint() method X-Git-Tag: v0.12_alpha1~154 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f4c1c27ffb303a6de415fa2bd9bed7c4f9b909fb;p=ncmpc.git screen_search: removed version check from paint() method The check wasn't actually doing anything, except leaking memory. Remove it. --- diff --git a/src/screen_search.c b/src/screen_search.c index d29c7bf..6942bf2 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); } }