[gtk+] gtkmenutoolbutton: Remove unused variable



commit cbc541d779b64aa1358766ad60ba19f9027b6831
Author: Bastien Nocera <hadess hadess net>
Date:   Tue May 29 18:27:42 2012 +0100

    gtkmenutoolbutton: Remove unused variable
    
    Set but unused.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=677055

 gtk/gtkmenutoolbutton.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkmenutoolbutton.c b/gtk/gtkmenutoolbutton.c
index 3256d7d..703ebe7 100644
--- a/gtk/gtkmenutoolbutton.c
+++ b/gtk/gtkmenutoolbutton.c
@@ -305,7 +305,6 @@ menu_position_func (GtkMenu           *menu,
   GtkMenuToolButtonPrivate *priv = button->priv;
   GtkAllocation arrow_allocation;
   GtkWidget *widget = GTK_WIDGET (button);
-  GtkRequisition req;
   GtkRequisition menu_req;
   GtkOrientation orientation;
   GtkTextDirection direction;
@@ -355,8 +354,6 @@ menu_position_func (GtkMenu           *menu,
   else 
     {
       gdk_window_get_origin (gtk_button_get_event_window (GTK_BUTTON (priv->arrow_button)), x, y);
-      gtk_widget_get_preferred_size (priv->arrow_button,
-                                     &req, NULL);
 
       gtk_widget_get_allocation (priv->arrow_button, &arrow_allocation);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]