From ec7c24d227fc1a480dec1975f4dc6c383f941070 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Jard=C3=B3n?= Date: Sun, 9 Aug 2009 12:01:03 +0200 Subject: [PATCH] Remove some unused variables (GnomeBug:591218) --- demos/gtk-demo/links.c | 1 - gdk/x11/gdkscreen-x11.c | 1 - gtk/gtkimagemenuitem.c | 1 - gtk/gtkliststore.c | 1 - gtk/gtkmenu.c | 1 - gtk/gtkscale.c | 1 - tests/testscale.c | 1 - 7 files changed, 7 deletions(-) diff --git a/demos/gtk-demo/links.c b/demos/gtk-demo/links.c index c506144c87..02c318861e 100644 --- a/demos/gtk-demo/links.c +++ b/demos/gtk-demo/links.c @@ -47,7 +47,6 @@ GtkWidget * do_links (GtkWidget *do_widget) { static GtkWidget *window = NULL; - GtkWidget *box; GtkWidget *label; if (!window) diff --git a/gdk/x11/gdkscreen-x11.c b/gdk/x11/gdkscreen-x11.c index cbf0930005..32088a8c45 100644 --- a/gdk/x11/gdkscreen-x11.c +++ b/gdk/x11/gdkscreen-x11.c @@ -1078,7 +1078,6 @@ _gdk_x11_screen_size_changed (GdkScreen *screen, { gint width, height; GdkDisplayX11 *display_x11; - gboolean monitors_changed; width = gdk_screen_get_width (screen); height = gdk_screen_get_height (screen); diff --git a/gtk/gtkimagemenuitem.c b/gtk/gtkimagemenuitem.c index 8948c9312a..7f0785d64e 100644 --- a/gtk/gtkimagemenuitem.c +++ b/gtk/gtkimagemenuitem.c @@ -615,7 +615,6 @@ gtk_image_menu_item_update (GtkActivatable *activatable, const gchar *property_name) { GtkImageMenuItem *image_menu_item; - GtkWidget *image; gboolean use_appearance; image_menu_item = GTK_IMAGE_MENU_ITEM (activatable); diff --git a/gtk/gtkliststore.c b/gtk/gtkliststore.c index dd286298fe..8ab1f18fbf 100644 --- a/gtk/gtkliststore.c +++ b/gtk/gtkliststore.c @@ -337,7 +337,6 @@ static void gtk_list_store_set_n_columns (GtkListStore *list_store, gint n_columns) { - GType *new_columns; int i; if (list_store->n_columns == n_columns) diff --git a/gtk/gtkmenu.c b/gtk/gtkmenu.c index 0fd5d3d4ad..5d66878355 100644 --- a/gtk/gtkmenu.c +++ b/gtk/gtkmenu.c @@ -4172,7 +4172,6 @@ gtk_menu_position (GtkMenu *menu) GtkRequisition requisition; GtkMenuPrivate *private; gint x, y; - gboolean initially_pushed_in; gint scroll_offset; gint menu_height; GdkScreen *screen; diff --git a/gtk/gtkscale.c b/gtk/gtkscale.c index 87aa469da4..261d69800e 100644 --- a/gtk/gtkscale.c +++ b/gtk/gtkscale.c @@ -1578,7 +1578,6 @@ gtk_scale_buildable_custom_finished (GtkBuildable *buildable, { GtkScale *scale = GTK_SCALE (buildable); MarksSubparserData *marks_data; - GtkWidget *toplevel; if (strcmp (tagname, "marks") == 0) { diff --git a/tests/testscale.c b/tests/testscale.c index 35b287e2dd..98e83f09ba 100755 --- a/tests/testscale.c +++ b/tests/testscale.c @@ -27,7 +27,6 @@ int main (int argc, char *argv[]) GtkWidget *box2; GtkWidget *frame; GtkWidget *scale; - GIcon *icon; gdouble marks[3] = { 0.0, 50.0, 100.0 }; const gchar *labels[3] = { "Left",