Remove dead store.
[dhcpcd-ui] / src / dhcpcd-gtk / menu.c
index 6924c24be9ec57de9e408e27bd92dd9f34f2a6ff..33835222b4b741f1b373f285fe0eed4ce183fe63 100644 (file)
@@ -32,7 +32,6 @@ static const char *copyright = "Copyright (c) 2009-2014 Roy Marples";
 static GtkStatusIcon *sicon;
 static GtkWidget *menu;
 static GtkAboutDialog *about;
-static bool ifmenu;
 
 static void
 on_pref(_unused GObject *o, gpointer data)
@@ -350,7 +349,6 @@ on_activate(GtkStatusIcon *icon)
 
        if ((l = TAILQ_LAST(&wi_scans, wi_scan_head)) && l != w) {
                menu = gtk_menu_new();
-               ifmenu = true;
                TAILQ_FOREACH(w, &wi_scans, next) {
                        item = gtk_image_menu_item_new_with_label(
                                w->interface->ifname);
@@ -364,7 +362,6 @@ on_activate(GtkStatusIcon *icon)
                            w->ifmenu);
                }
        } else {
-               ifmenu = false;
                w->ifmenu = menu = add_scans(w);
        }