[gtk/matthiasc/css-matching-4: 4/7] Revert "selector stats"
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/css-matching-4: 4/7] Revert "selector stats"
- Date: Tue, 21 Jan 2020 01:10:53 +0000 (UTC)
commit 8782edbaf36105c35fb9001d2f275431ccb357c9
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Jan 20 08:00:24 2020 -0500
Revert "selector stats"
This reverts commit bf371e94dfafa72620040277ae7c77bc0907590f.
gtk/gtkcssselector.c | 20 +-------------------
gtk/gtkwindow.c | 4 ----
2 files changed, 1 insertion(+), 23 deletions(-)
---
diff --git a/gtk/gtkcssselector.c b/gtk/gtkcssselector.c
index 50414edac3..aabffb3e3e 100644
--- a/gtk/gtkcssselector.c
+++ b/gtk/gtkcssselector.c
@@ -171,29 +171,11 @@ gtk_css_selector_tree_found_match (const GtkCssSelectorTree *tree,
}
}
-static int match_count;
-static int positive_match_count;
-
-void print_match_count (void);
-void print_match_count (void)
-{
- g_print ("%d selector matches (%d positive)\n", match_count, positive_match_count);
- match_count = 0;
- positive_match_count = 0;
-}
-
static inline gboolean
gtk_css_selector_match (const GtkCssSelector *selector,
const GtkCssMatcher *matcher)
{
- gboolean result;
-
- result = selector->class->match_one (selector, matcher);
-
- match_count++;
- positive_match_count += result;
-
- return result;
+ return selector->class->match_one (selector, matcher);
}
static inline gboolean
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 0ff22e59af..e390e6bca2 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -6008,15 +6008,11 @@ surface_size_changed (GtkWidget *widget,
gtk_window_configure (GTK_WINDOW (widget), width, height);
}
-extern void print_match_count (void);
-
static gboolean
surface_render (GdkSurface *surface,
cairo_region_t *region,
GtkWidget *widget)
{
- print_match_count ();
-
gtk_widget_render (widget, surface, region);
return TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]