Code

screen_browser: eliminated local variable "entity"
authorMax Kellermann <max@duempel.org>
Tue, 18 Nov 2008 20:51:26 +0000 (21:51 +0100)
committerMax Kellermann <max@duempel.org>
Tue, 18 Nov 2008 20:51:26 +0000 (21:51 +0100)
"entity" is not being used after its initial assignment.

src/screen_browser.c

index bcf749ed7bd67ebd3322c84145e04afcaed364d5..b5ce64171721baec8d445eb660313eb5ea8a41cb 100644 (file)
@@ -57,12 +57,10 @@ static void
 set_highlight(mpdclient_filelist_t *fl, mpd_Song *song, int highlight)
 {
        struct filelist_entry *entry = filelist_find_song(fl, song);
-       mpd_InfoEntity *entity;
 
        if (entry == NULL)
                return;
 
-       entity = entry->entity;
        if (highlight)
                entry->flags |= HIGHLIGHT;
        else