Drop code parsing deprecated forms of url

We no longer allow whitespace between url and (.
This commit is contained in:
Matthias Clasen 2017-09-17 17:01:29 -04:00
parent d1b77fd60f
commit a08e2b5692

View File

@ -834,20 +834,10 @@ _gtk_css_parser_read_url (GtkCssParser *parser)
if (_gtk_css_parser_try (parser, "url", FALSE))
{
if (!_gtk_css_parser_try (parser, "(", TRUE))
{
_gtk_css_parser_skip_whitespace (parser);
if (_gtk_css_parser_try (parser, "(", TRUE))
{
_gtk_css_parser_error_full (parser,
GTK_CSS_PROVIDER_ERROR_DEPRECATED,
"Whitespace between 'url' and '(' is deprecated");
}
else
{
_gtk_css_parser_error (parser, "Expected '(' after 'url'");
return NULL;
}
}
path = _gtk_css_parser_read_string (parser);
if (path == NULL)