stylecontext: Remove line that is a no-op

Creating the transient node will already copy the widget type. So
copying again will not do anything.
This commit is contained in:
Benjamin Otte
2015-09-05 06:46:29 +02:00
parent c8c666c87c
commit 9020b5bd17

View File

@ -1233,7 +1233,6 @@ gtk_style_context_save (GtkStyleContext *context)
cssnode = gtk_css_transient_node_new (priv->cssnode);
gtk_css_node_set_parent (cssnode, gtk_style_context_get_root (context));
gtk_css_node_set_widget_type (cssnode, gtk_css_node_get_widget_type (priv->cssnode));
priv->saved_nodes = g_slist_prepend (priv->saved_nodes, priv->cssnode);
priv->cssnode = cssnode;