diff options
Diffstat (limited to 'libappstream-builder/plugins/asb-plugin-desktop.c')
-rw-r--r-- | libappstream-builder/plugins/asb-plugin-desktop.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/libappstream-builder/plugins/asb-plugin-desktop.c b/libappstream-builder/plugins/asb-plugin-desktop.c index 02f5909..a6943c8 100644 --- a/libappstream-builder/plugins/asb-plugin-desktop.c +++ b/libappstream-builder/plugins/asb-plugin-desktop.c @@ -52,7 +52,6 @@ asb_plugin_desktop_refine (AsbPlugin *plugin, { AsAppParseFlags parse_flags = AS_APP_PARSE_FLAG_USE_HEURISTICS | AS_APP_PARSE_FLAG_ALLOW_VETO; - GPtrArray *icons; g_autoptr(AsApp) desktop_app = NULL; g_autoptr(GdkPixbuf) pixbuf = NULL; @@ -65,14 +64,6 @@ asb_plugin_desktop_refine (AsbPlugin *plugin, if (!as_app_parse_file (desktop_app, filename, parse_flags, error)) return FALSE; - /* convert any UNKNOWN icons to CACHED */ - icons = as_app_get_icons (AS_APP (desktop_app)); - for (guint i = 0; i < icons->len; i++) { - AsIcon *icon = g_ptr_array_index (icons, i); - if (as_icon_get_kind (icon) == AS_ICON_KIND_UNKNOWN) - as_icon_set_kind (icon, AS_ICON_KIND_CACHED); - } - /* copy all metadata */ as_app_subsume_full (AS_APP (app), desktop_app, AS_APP_SUBSUME_FLAG_NO_OVERWRITE | |