Code

screen_search: removed version check from paint() method
authorMax Kellermann <max@duempel.org>
Thu, 25 Sep 2008 16:38:27 +0000 (18:38 +0200)
committerMax Kellermann <max@duempel.org>
Thu, 25 Sep 2008 16:38:27 +0000 (18:38 +0200)
The check wasn't actually doing anything, except leaking memory.
Remove it.

src/screen_search.c

index d29c7bf9594045288602093e1a697601722802d2..6942bf205d759a9e5d1c5258d7a7d9ac12c4ddbd 100644 (file)
@@ -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);
        }
 }