[gtk/wip/otte/for-master: 2/8] box: Remove unnecessary code




commit 012dd825ba5b3da9f087fb81cc4bf6ce31853d28
Author: Benjamin Otte <otte redhat com>
Date:   Tue Oct 20 01:51:58 2020 +0200

    box: Remove unnecessary code
    
    gtk_widget_insert_after() reorders CSS nodes properly.

 gtk/gtkbox.c | 7 -------
 1 file changed, 7 deletions(-)
---
diff --git a/gtk/gtkbox.c b/gtk/gtkbox.c
index 667f7f7ef5..b23d523ac2 100644
--- a/gtk/gtkbox.c
+++ b/gtk/gtkbox.c
@@ -58,7 +58,6 @@
 #include "gtkbox.h"
 #include "gtkboxlayout.h"
 #include "gtkbuildable.h"
-#include "gtkcsspositionvalueprivate.h"
 #include "gtkintl.h"
 #include "gtkorientable.h"
 #include "gtkprivate.h"
@@ -504,9 +503,6 @@ gtk_box_insert_child_after (GtkBox    *box,
     return;
 
   gtk_widget_insert_after (child, widget, sibling);
-  gtk_css_node_insert_after (gtk_widget_get_css_node (widget),
-                             gtk_widget_get_css_node (child),
-                             sibling ? gtk_widget_get_css_node (sibling) : NULL);
 }
 
 /**
@@ -542,9 +538,6 @@ gtk_box_reorder_child_after (GtkBox    *box,
     return;
 
   gtk_widget_insert_after (child, widget, sibling);
-  gtk_css_node_insert_after (gtk_widget_get_css_node (widget),
-                             gtk_widget_get_css_node (child),
-                             sibling ? gtk_widget_get_css_node (sibling) : NULL);
 }
 
 /**


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