summaryrefslogtreecommitdiff
path: root/gtk/gtkcssparser.c
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2012-01-13 18:09:30 -0500
committerCosimo Cecchi <cosimoc@gnome.org>2012-01-13 18:09:30 -0500
commite0efeba27e5ab7f72901d4e46630cc2d8b68b18d (patch)
tree29b4e39be3c25525e99140398fa5dcc8f8b2f20e /gtk/gtkcssparser.c
parentddd164c230b706d98521b5b40dc15cf84c319664 (diff)
downloadgtk+-e0efeba27e5ab7f72901d4e46630cc2d8b68b18d.tar.gz
parser: remove unused _gtk_css_parser_read_uri()
It's not used anymore now.
Diffstat (limited to 'gtk/gtkcssparser.c')
-rw-r--r--gtk/gtkcssparser.c49
1 files changed, 0 insertions, 49 deletions
diff --git a/gtk/gtkcssparser.c b/gtk/gtkcssparser.c
index fc6dc3e95a..cf87ef929a 100644
--- a/gtk/gtkcssparser.c
+++ b/gtk/gtkcssparser.c
@@ -446,55 +446,6 @@ _gtk_css_parser_read_string (GtkCssParser *parser)
return NULL;
}
-char *
-_gtk_css_parser_read_uri (GtkCssParser *parser)
-{
- char *result;
-
- g_return_val_if_fail (GTK_IS_CSS_PARSER (parser), NULL);
-
- if (!_gtk_css_parser_try (parser, "url(", TRUE))
- {
- _gtk_css_parser_error (parser, "expected 'url('");
- return NULL;
- }
-
- _gtk_css_parser_skip_whitespace (parser);
-
- if (_gtk_css_parser_is_string (parser))
- {
- result = _gtk_css_parser_read_string (parser);
- }
- else
- {
- GString *str = g_string_new (NULL);
-
- while (_gtk_css_parser_read_char (parser, str, URLCHAR))
- ;
- result = g_string_free (str, FALSE);
- if (result == NULL)
- _gtk_css_parser_error (parser, "not a url");
- }
-
- if (result == NULL)
- return NULL;
-
- _gtk_css_parser_skip_whitespace (parser);
-
- if (*parser->data != ')')
- {
- _gtk_css_parser_error (parser, "missing ')' for url");
- g_free (result);
- return NULL;
- }
-
- parser->data++;
-
- _gtk_css_parser_skip_whitespace (parser);
-
- return result;
-}
-
gboolean
_gtk_css_parser_try_int (GtkCssParser *parser,
int *value)