summaryrefslogtreecommitdiff
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
parent26ed77c836cddc09386a7cb786dac2e8793cc698 (diff)
downloadappstream-glib-ded6e2392d12f92041b2dc20ab33e55b21a85667.tar.gz
trivial: Remove dead code
-rw-r--r--client/as-util.c2
-rw-r--r--libappstream-builder/asb-context.c2
-rw-r--r--libappstream-builder/plugins/asb-plugin-desktop.c4
3 files changed, 0 insertions, 8 deletions
diff --git a/client/as-util.c b/client/as-util.c
index 8e191ec..aedb47d 100644
--- a/client/as-util.c
+++ b/client/as-util.c
@@ -2810,8 +2810,6 @@ as_util_check_root_app (AsApp *app, GPtrArray *problems)
GError *error_local = NULL;
/* skip */
- if (as_app_get_metadata_item (app, "NoDisplay") != NULL)
- return;
if (as_app_get_source_kind (app) == AS_APP_SOURCE_KIND_METAINFO)
return;
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);