From 4d0ca91c72dde7c69f9668b76a6820830f4a54b9 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Wed, 28 Nov 2012 21:15:05 +0100 Subject: [PATCH] menuitem: Remove unused variables --- gtk/gtkmenuitem.c | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/gtk/gtkmenuitem.c b/gtk/gtkmenuitem.c index 5be34894e1..e6532bc891 100644 --- a/gtk/gtkmenuitem.c +++ b/gtk/gtkmenuitem.c @@ -850,8 +850,6 @@ gtk_menu_item_get_preferred_width (GtkWidget *widget, GtkWidget *parent; guint accel_width; guint border_width; - GtkPackDirection pack_dir; - GtkPackDirection child_pack_dir; gint min_width, nat_width; GtkStyleContext *context; GtkStateFlags state; @@ -861,17 +859,6 @@ gtk_menu_item_get_preferred_width (GtkWidget *widget, bin = GTK_BIN (widget); parent = gtk_widget_get_parent (widget); - if (GTK_IS_MENU_BAR (parent)) - { - pack_dir = gtk_menu_bar_get_pack_direction (GTK_MENU_BAR (parent)); - child_pack_dir = gtk_menu_bar_get_child_pack_direction (GTK_MENU_BAR (parent)); - } - else - { - pack_dir = GTK_PACK_DIRECTION_LTR; - child_pack_dir = GTK_PACK_DIRECTION_LTR; - } - border_width = gtk_container_get_border_width (GTK_CONTAINER (widget)); context = gtk_widget_get_style_context (widget); @@ -936,8 +923,6 @@ gtk_menu_item_real_get_height (GtkWidget *widget, GtkWidget *parent; guint accel_width; guint border_width; - GtkPackDirection pack_dir; - GtkPackDirection child_pack_dir; gint min_height, nat_height; gint avail_size = 0; @@ -950,17 +935,6 @@ gtk_menu_item_real_get_height (GtkWidget *widget, bin = GTK_BIN (widget); parent = gtk_widget_get_parent (widget); - if (GTK_IS_MENU_BAR (parent)) - { - pack_dir = gtk_menu_bar_get_pack_direction (GTK_MENU_BAR (parent)); - child_pack_dir = gtk_menu_bar_get_child_pack_direction (GTK_MENU_BAR (parent)); - } - else - { - pack_dir = GTK_PACK_DIRECTION_LTR; - child_pack_dir = GTK_PACK_DIRECTION_LTR; - } - border_width = gtk_container_get_border_width (GTK_CONTAINER (widget)); min_height = (border_width * 2) + padding.top + padding.bottom; @@ -1478,7 +1452,6 @@ gtk_menu_item_size_allocate (GtkWidget *widget, GtkBin *bin; GtkAllocation child_allocation; GtkTextDirection direction; - GtkPackDirection pack_dir; GtkPackDirection child_pack_dir; GtkWidget *child; GtkWidget *parent; @@ -1493,12 +1466,10 @@ gtk_menu_item_size_allocate (GtkWidget *widget, parent = gtk_widget_get_parent (widget); if (GTK_IS_MENU_BAR (parent)) { - pack_dir = gtk_menu_bar_get_pack_direction (GTK_MENU_BAR (parent)); child_pack_dir = gtk_menu_bar_get_child_pack_direction (GTK_MENU_BAR (parent)); } else { - pack_dir = GTK_PACK_DIRECTION_LTR; child_pack_dir = GTK_PACK_DIRECTION_LTR; }