From 228a2c82f6c51bda71c36952cba72bafa7344e9f Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 31 Dec 2013 12:48:05 -0500 Subject: [PATCH] GBookmarkFile: Remove dead code The icon element is actually parsed further up, and this case is never hit, so remove it. --- glib/gbookmarkfile.c | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/glib/gbookmarkfile.c b/glib/gbookmarkfile.c index a2eaab3..3c6d597 100644 --- a/glib/gbookmarkfile.c +++ b/glib/gbookmarkfile.c @@ -1264,26 +1264,6 @@ start_element_raw_cb (GMarkupParseContext *context, element_name, BOOKMARK_GROUP_ELEMENT); break; - case STATE_ICON: - if (IS_ELEMENT_NS (parse_data, element_name, BOOKMARK_NAMESPACE_URI, BOOKMARK_ICON_ELEMENT)) - { - GError *inner_error = NULL; - - parse_icon_element (context, - parse_data, - attribute_names, - attribute_values, - &inner_error); - if (inner_error) - g_propagate_error (error, inner_error); - } - else - g_set_error (error, G_MARKUP_ERROR, - G_MARKUP_ERROR_UNKNOWN_ELEMENT, - _("Unexpected tag '%s' inside '%s'"), - element_name, - XBEL_METADATA_ELEMENT); - break; default: g_warn_if_reached (); break; -- 2.7.4