mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-26 07:26:15 +01:00
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:
parent
0f746070d8
commit
228a2c82f6
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user