]> Pileus Git - ~andy/gtk/commitdiff
menubar: Remove unused variable
authorBenjamin Otte <otte@redhat.com>
Sat, 30 Apr 2011 03:42:00 +0000 (05:42 +0200)
committerBenjamin Otte <otte@redhat.com>
Sun, 1 May 2011 02:44:56 +0000 (04:44 +0200)
gtk/gtkmenubar.c

index d790e31efdf02937772f67a589795600a3569b73..42dadbd92095bcc23186419e71f993aec07a391f 100644 (file)
@@ -301,7 +301,6 @@ gtk_menu_bar_size_request (GtkWidget      *widget,
   GtkMenuShell *menu_shell;
   GtkWidget *child;
   GList *children;
-  gint nchildren;
   GtkRequisition child_requisition;
   gint ipadding;
   guint border_width;
@@ -316,7 +315,6 @@ gtk_menu_bar_size_request (GtkWidget      *widget,
   menu_shell = GTK_MENU_SHELL (widget);
   priv = menu_bar->priv;
 
-  nchildren = 0;
   children = menu_shell->priv->children;
 
   while (children)
@@ -349,7 +347,6 @@ gtk_menu_bar_size_request (GtkWidget      *widget,
               requisition->width = MAX (requisition->width, child_requisition.width);
               requisition->height += child_requisition.height;
             }
-          nchildren += 1;
         }
     }