Code

screen_queue: eliminated unused variable "song"
authorMax Kellermann <max@duempel.org>
Mon, 2 Nov 2009 17:15:25 +0000 (18:15 +0100)
committerMax Kellermann <max@duempel.org>
Mon, 2 Nov 2009 17:15:25 +0000 (18:15 +0100)
Not used in center_playing_item().

src/screen_queue.c

index c5be09af82a7751f2d0670f3eb10c43a3d0f09b1..93b3cfe5498089967fee682ae998e5d3d6b675a7 100644 (file)
@@ -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)