From 6379a425b069eeab32c052b42a60908e0d0e5fb7 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Tue, 7 Jul 2015 18:16:39 +0200 Subject: [PATCH] actionbar: Remove get_path_for_child implementation 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 | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/gtk/gtkactionbar.c b/gtk/gtkactionbar.c index 302a3f0ba2..4b60de06ae 100644 --- a/gtk/gtkactionbar.c +++ b/gtk/gtkactionbar.c @@ -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, -- 2.30.2