GBookmarkFile: Remove dead code

The icon element is actually parsed further up, and this
case is never hit, so remove it.
This commit is contained in:
Matthias Clasen 2013-12-31 12:48:05 -05:00
parent 0f746070d8
commit 228a2c82f6

View File

@ -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;