aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-09-25 18:38:27 +0200
committerMax Kellermann <max@duempel.org>2008-09-25 18:38:27 +0200
commitf4c1c27ffb303a6de415fa2bd9bed7c4f9b909fb (patch)
tree01add114cc813d865d0f17acd29b8d7df416f739 /src
parenta5b0f5dfbc1be60da0c0e7f281a562c1327bfa8e (diff)
downloadmpd-f4c1c27ffb303a6de415fa2bd9bed7c4f9b909fb.tar.gz
mpd-f4c1c27ffb303a6de415fa2bd9bed7c4f9b909fb.tar.xz
mpd-f4c1c27ffb303a6de415fa2bd9bed7c4f9b909fb.zip
screen_search: removed version check from paint() method
The check wasn't actually doing anything, except leaking memory. Remove it.
Diffstat (limited to 'src')
-rw-r--r--src/screen_search.c6
1 files changed, 1 insertions, 5 deletions
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);
}
}