Commit e0efeba2 authored by Cosimo Cecchi's avatar Cosimo Cecchi

parser: remove unused _gtk_css_parser_read_uri()

It's not used anymore now.
parent ddd164c2
......@@ -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)
......
......@@ -80,7 +80,6 @@ gboolean _gtk_css_parser_try_enum (GtkCssParser *parser
void _gtk_css_parser_skip_whitespace (GtkCssParser *parser);
char * _gtk_css_parser_read_string (GtkCssParser *parser);
char * _gtk_css_parser_read_uri (GtkCssParser *parser);
char * _gtk_css_parser_read_value (GtkCssParser *parser);
GtkSymbolicColor *_gtk_css_parser_read_symbolic_color
(GtkCssParser *parser);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment