summaryrefslogtreecommitdiff
path: root/libappstream-builder
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2015-09-18 11:31:32 +0100
committerRichard Hughes <richard@hughsie.com>2015-09-18 11:42:19 +0100
commitded6e2392d12f92041b2dc20ab33e55b21a85667 (patch)
tree1ecfc1163961b229525b6b931ff451569ff8a5e0 /libappstream-builder
parent26ed77c836cddc09386a7cb786dac2e8793cc698 (diff)
downloadappstream-glib-ded6e2392d12f92041b2dc20ab33e55b21a85667.tar.gz
trivial: Remove dead code
Diffstat (limited to 'libappstream-builder')
-rw-r--r--libappstream-builder/asb-context.c2
-rw-r--r--libappstream-builder/plugins/asb-plugin-desktop.c4
2 files changed, 0 insertions, 6 deletions
diff --git a/libappstream-builder/asb-context.c b/libappstream-builder/asb-context.c
index bb04224..e6214c4 100644
--- a/libappstream-builder/asb-context.c
+++ b/libappstream-builder/asb-context.c
@@ -1043,8 +1043,6 @@ asb_context_write_xml_fail (AsbContext *ctx, GError **error)
continue;
if (as_app_get_vetos(app)->len == 0)
continue;
- if (as_app_get_metadata_item (app, "NoDisplay") != NULL)
- continue;
if (as_store_get_app_by_id (priv->store_failed,
as_app_get_id (app)) != NULL)
continue;
diff --git a/libappstream-builder/plugins/asb-plugin-desktop.c b/libappstream-builder/plugins/asb-plugin-desktop.c
index 34cf795..8340572 100644
--- a/libappstream-builder/plugins/asb-plugin-desktop.c
+++ b/libappstream-builder/plugins/asb-plugin-desktop.c
@@ -306,10 +306,6 @@ asb_plugin_desktop_refine (AsbPlugin *plugin,
if (!as_app_parse_file (desktop_app, filename, parse_flags, error))
return FALSE;
- /* NoDisplay apps are never included */
- if (as_app_get_metadata_item (desktop_app, "NoDisplay") != NULL)
- as_app_add_veto (AS_APP (app), "NoDisplay=true");
-
/* copy all metadata */
as_app_subsume_full (AS_APP (app), desktop_app, AS_APP_SUBSUME_FLAG_NO_OVERWRITE);