[gtk+/gtk-style-context: 245/347] GtkCssProvider: no need for resetting the parser prior to parsing data
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-style-context: 245/347] GtkCssProvider: no need for resetting the parser prior to parsing data
- Date: Thu, 11 Nov 2010 01:25:07 +0000 (UTC)
commit 57a6ef2929d573d13f9ee66e44abd421cdf7e9f5
Author: Carlos Garnacho <carlosg gnome org>
Date: Fri Oct 8 18:32:10 2010 +0200
GtkCssProvider: no need for resetting the parser prior to parsing data
This is done anyway on each iteration to parse_rule() in parse_stylesheet()
gtk/gtkcssprovider.c | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkcssprovider.c b/gtk/gtkcssprovider.c
index 36ef361..471a8b3 100644
--- a/gtk/gtkcssprovider.c
+++ b/gtk/gtkcssprovider.c
@@ -2159,7 +2159,6 @@ gtk_css_provider_load_from_data (GtkCssProvider *css_provider,
if (priv->selectors_info->len > 0)
g_ptr_array_remove_range (priv->selectors_info, 0, priv->selectors_info->len);
- css_provider_reset_parser (css_provider);
priv->scanner->input_name = "-";
g_scanner_input_text (priv->scanner, data, (guint) length);
@@ -2200,7 +2199,6 @@ gtk_css_provider_load_from_file (GtkCssProvider *css_provider,
g_free (priv->filename);
priv->filename = g_file_get_path (file);
- css_provider_reset_parser (css_provider);
priv->scanner->input_name = priv->filename;
g_scanner_input_text (priv->scanner, data, (guint) length);
@@ -2248,7 +2246,6 @@ gtk_css_provider_load_from_path (GtkCssProvider *css_provider,
g_free (priv->filename);
priv->filename = g_strdup (path);
- css_provider_reset_parser (css_provider);
priv->scanner->input_name = priv->filename;
g_scanner_input_text (priv->scanner, data, (guint) length);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]