[gtksourceview/gnome-3-24] StyleScheme: remove dead code (found by Coverity)
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview/gnome-3-24] StyleScheme: remove dead code (found by Coverity)
- Date: Sun, 22 Jan 2017 12:04:24 +0000 (UTC)
commit 8211297b228f18d39cfa0ae8616ba7c594532648
Author: Sébastien Wilmet <swilmet gnome org>
Date: Sun Jan 22 12:29:42 2017 +0100
StyleScheme: remove dead code (found by Coverity)
use_style is always NULL at this place.
gtksourceview/gtksourcestylescheme.c | 10 ----------
1 files changed, 0 insertions(+), 10 deletions(-)
---
diff --git a/gtksourceview/gtksourcestylescheme.c b/gtksourceview/gtksourcestylescheme.c
index cbb1f53..702714f 100644
--- a/gtksourceview/gtksourcestylescheme.c
+++ b/gtksourceview/gtksourcestylescheme.c
@@ -1041,16 +1041,6 @@ parse_style (GtkSourceStyleScheme *scheme,
tmp = xmlGetProp (node, BAD_CAST "use-style");
if (tmp != NULL)
{
- if (use_style != NULL)
- {
- g_set_error (error, ERROR_QUARK, 0,
- "in style '%s': duplicated use-style attribute",
- style_name);
- g_free (style_name);
- g_object_unref (use_style);
- return FALSE;
- }
-
use_style = gtk_source_style_scheme_get_style (scheme, (char*) tmp);
if (use_style == NULL)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]