actionbar: Remove get_path_for_child implementation
authorBenjamin Otte <otte@redhat.com>
Tue, 7 Jul 2015 16:16:39 +0000 (18:16 +0200)
committerBenjamin Otte <otte@redhat.com>
Wed, 8 Jul 2015 03:48:59 +0000 (05:48 +0200)
It wasn't used because CSS walks the widget->parent chain, so it'd only
ever call this func for priv->revealer.

gtk/gtkactionbar.c

index 302a3f0ba22fb360fae0c3ba463afb161727e75a..4b60de06ae0e34ffdcd7fbca14a8d8c415af2086 100644 (file)
@@ -209,18 +209,6 @@ gtk_action_bar_set_child_property (GtkContainer *container,
                                       value);
 }
 
-static GtkWidgetPath *
-gtk_action_bar_get_path_for_child (GtkContainer *container,
-                                   GtkWidget    *child)
-{
-  GtkActionBarPrivate *priv = gtk_action_bar_get_instance_private (GTK_ACTION_BAR (container));
-
-  if (child == priv->revealer)
-    return GTK_CONTAINER_CLASS (gtk_action_bar_parent_class)->get_path_for_child (container, child);
-  else
-    return gtk_container_get_path_for_child (GTK_CONTAINER (priv->box), child);
-}
-
 static void
 gtk_action_bar_class_init (GtkActionBarClass *klass)
 {
@@ -242,7 +230,6 @@ gtk_action_bar_class_init (GtkActionBarClass *klass)
   container_class->child_type = gtk_action_bar_child_type;
   container_class->set_child_property = gtk_action_bar_set_child_property;
   container_class->get_child_property = gtk_action_bar_get_child_property;
-  container_class->get_path_for_child = gtk_action_bar_get_path_for_child;
 
   gtk_container_class_install_child_property (container_class,
                                               CHILD_PROP_PACK_TYPE,