Remove unused vars
authorRoy Marples <roy@marples.name>
Sun, 1 Apr 2012 07:55:10 +0000 (07:55 +0000)
committerRoy Marples <roy@marples.name>
Sun, 1 Apr 2012 07:55:10 +0000 (07:55 +0000)
src/dhcpcd-gtk/menu.c
src/dhcpcd-gtk/prefs.c

index 7898b4706e830abdae9e4e69c999ee6d8d9c1b85..6345af6c0cf899c3b664435331ed42a08202f65c 100644 (file)
@@ -158,7 +158,7 @@ static void
 on_activate(GtkStatusIcon *icon)
 {
        WI_SCAN *w;
-       GtkWidget *menu, *imenu, *item, *image;
+       GtkWidget *menu, *item, *image;
 
        notify_close();
        if (wi_scans == NULL)
@@ -166,7 +166,6 @@ on_activate(GtkStatusIcon *icon)
        if (wi_scans->next) {
                menu = gtk_menu_new();
                for (w = wi_scans; w; w = w->next) {
-                       imenu = gtk_menu_new();
                        item = gtk_image_menu_item_new_with_label(
                                w->interface->ifname);
                        image = gtk_image_new_from_icon_name(
index af9e400c5c296b661028bf7f6eee413ff9e867e0..7bf4868dcaf841aa4419bf87e8c0b458bf70912f 100644 (file)
@@ -209,7 +209,6 @@ blocks_on_change(GtkWidget *widget, gpointer data)
        char **list, **lp;
        const char *iname, *nn;
        GSList *l, *new_names;
-       GtkIconTheme *it;
        GdkPixbuf *pb;
        int n;
 
@@ -229,7 +228,6 @@ blocks_on_change(GtkWidget *widget, gpointer data)
        gtk_list_store_clear(store);
        list = dhcpcd_config_blocks_get(con, block);
        
-       it = gtk_icon_theme_get_default();
        if (g_strcmp0(block, "interface") == 0)
                new_names = list_interfaces(con);
        else