From 275d9e8b34d33465c4cd88c6cf8bfba39ed86a16 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 2 Nov 2009 18:15:25 +0100 Subject: [PATCH] screen_queue: eliminated unused variable "song" Not used in center_playing_item(). --- src/screen_queue.c | 5 ----- 1 file changed, 5 deletions(-) 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) -- 2.30.2