[gtk] Revert "css: Print selectors"



commit 53bc1d60c4686273db591b94e07a2bd9a4cafe6a
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Jan 24 11:51:18 2020 -0500

    Revert "css: Print selectors"
    
    This reverts commit da5d5243241941ba130fc0644e66986f967a2ef3.
    
    And this one too. The commits are there, if people need this
    kind of statistics again, they can just be cherry-picked.

 gtk/gtkcssprovider.c | 40 ----------------------------------------
 1 file changed, 40 deletions(-)
---
diff --git a/gtk/gtkcssprovider.c b/gtk/gtkcssprovider.c
index c8d3eb0656..6c25afae67 100644
--- a/gtk/gtkcssprovider.c
+++ b/gtk/gtkcssprovider.c
@@ -978,55 +978,15 @@ gtk_css_provider_postprocess (GtkCssProvider *css_provider)
 
       ruleset = &g_array_index (priv->rulesets, GtkCssRuleset, i);
 
-
       _gtk_css_selector_tree_builder_add (builder,
                                          ruleset->selector,
                                          &ruleset->selector_match,
                                          ruleset);
     }
 
-#if 0
-  {
-    GString *str = g_string_new ("");
-    g_string_append_printf (str, "%d rules\n", priv->rulesets->len);
-
-    for (i = 0; i < priv->rulesets->len; i++)
-      {
-        GtkCssRuleset *ruleset;
-
-        ruleset = &g_array_index (priv->rulesets, GtkCssRuleset, i);
-
-        _gtk_css_selector_print (ruleset->selector, str);
-        g_string_append (str, "\n");
-      }
-
-    g_print ("%s\n", str->str);
-    g_string_free (str, TRUE);
-  }
-#endif
-
   priv->tree = _gtk_css_selector_tree_builder_build (builder);
   _gtk_css_selector_tree_builder_free (builder);
 
-#ifdef PRINT_SELECTORS 
-  {
-    GString *str = g_string_new ("");
-
-    for (i = 0; i < priv->rulesets->len; i++)
-      {
-        GtkCssRuleset *ruleset;
-
-        ruleset = &g_array_index (priv->rulesets, GtkCssRuleset, i);
-
-        _gtk_css_selector_print (ruleset->selector, str);
-        g_string_append (str, "\n");
-      }
-
-    g_print ("%s\n", str->str);
-    g_string_free (str, TRUE);
-  }
-#endif
-
 #ifndef VERIFY_TREE
   for (i = 0; i < priv->rulesets->len; i++)
     {


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