[gtk/4.0-backports: 44/53] css: Drop a bit of unreachable code
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/4.0-backports: 44/53] css: Drop a bit of unreachable code
- Date: Sun, 7 Feb 2021 17:49:41 +0000 (UTC)
commit 284dd6aa7e286d5a7d55113d96fd46498204170f
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Feb 4 00:39:34 2021 -0500
css: Drop a bit of unreachable code
We never get here. The compiler says so.
Pointed out in https://www.viva64.com/en/b/0793/
gtk/gtkcssselector.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
---
diff --git a/gtk/gtkcssselector.c b/gtk/gtkcssselector.c
index f04a6fe7c5..951fbd1060 100644
--- a/gtk/gtkcssselector.c
+++ b/gtk/gtkcssselector.c
@@ -1073,11 +1073,8 @@ parse_n_plus_b (GtkCssParser *parser,
*a = 0;
return TRUE;
}
-
- gtk_css_parser_error_syntax (parser, "Not a valid an+b type");
- return FALSE;
}
-
+
static gboolean
parse_a_n_plus_b (GtkCssParser *parser,
int seen_sign,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]