[gtk+/wip/css: 31/36] stylecontext: Remove leftover debugging



commit c5a6ed49a4f91f4e64ea205229b7d07ffc01a0e6
Author: Benjamin Otte <otte redhat com>
Date:   Mon Sep 17 10:48:38 2012 +0200

    stylecontext: Remove leftover debugging
    
    ... that actually was both wrong, a performance failure and has been
    there since the original checkin.
    
    Updating the cached style data absolutely does not mean clearing all
    cached style data first. There's nothing to update then.

 gtk/gtkstylecontext.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkstylecontext.c b/gtk/gtkstylecontext.c
index 5eae30b..79c8804 100644
--- a/gtk/gtkstylecontext.c
+++ b/gtk/gtkstylecontext.c
@@ -2948,8 +2948,6 @@ gtk_style_context_update_cache (GtkStyleContext  *context,
 
   priv = context->priv;
 
-  g_hash_table_remove_all (priv->style_data);
-
   g_hash_table_iter_init (&iter, priv->style_data);
   while (g_hash_table_iter_next (&iter, &key, &value))
     {



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