From: Max Kellermann Date: Mon, 2 Nov 2009 17:15:25 +0000 (+0100) Subject: screen_queue: eliminated unused variable "song" X-Git-Tag: release-0.16~42 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=275d9e8b34d33465c4cd88c6cf8bfba39ed86a16;p=ncmpc.git screen_queue: eliminated unused variable "song" Not used in center_playing_item(). --- diff --git a/src/screen_queue.c b/src/screen_queue.c index c5be09a..93b3cfe 100644 --- a/src/screen_queue.c +++ b/src/screen_queue.c @@ -136,14 +136,9 @@ screen_queue_lw_callback(unsigned idx, G_GNUC_UNUSED void *data) static void center_playing_item(struct mpdclient *c, bool center_cursor) { - const struct mpd_song *song; unsigned length = c->playlist.list->len; int idx; - song = mpdclient_get_current_song(c); - if (song == NULL) - return; - /* try to center the song that are playing */ idx = playlist_get_index(&c->playlist, c->song); if (idx < 0)