[glib] GBookmarkFile: Remove dead code



commit 228a2c82f6c51bda71c36952cba72bafa7344e9f
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Dec 31 12:48:05 2013 -0500

    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 files changed, 0 insertions(+), 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;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]