summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b871878)
raw | patch | inline | side by side (parent: b871878)
author | Max Kellermann <max@duempel.org> | |
Mon, 2 Nov 2009 17:15:25 +0000 (18:15 +0100) | ||
committer | Max 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 | patch | blob | history |
diff --git a/src/screen_queue.c b/src/screen_queue.c
index c5be09af82a7751f2d0670f3eb10c43a3d0f09b1..93b3cfe5498089967fee682ae998e5d3d6b675a7 100644 (file)
--- a/src/screen_queue.c
+++ b/src/screen_queue.c
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)