[gtk+] Drop code parsing deprecated forms of url



commit a08e2b5692cca817594aa11507f43dc672774d0c
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Sep 17 17:01:29 2017 -0400

    Drop code parsing deprecated forms of url
    
    We no longer allow whitespace between url and (.

 gtk/gtkcssparser.c |   14 ++------------
 1 files changed, 2 insertions(+), 12 deletions(-)
---
diff --git a/gtk/gtkcssparser.c b/gtk/gtkcssparser.c
index 960445f..852f9ef 100644
--- a/gtk/gtkcssparser.c
+++ b/gtk/gtkcssparser.c
@@ -835,18 +835,8 @@ _gtk_css_parser_read_url (GtkCssParser *parser)
     {
       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;
-            }
+          _gtk_css_parser_error (parser, "Expected '(' after 'url'");
+          return NULL;
         }
 
       path = _gtk_css_parser_read_string (parser);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]