[gnome-software] trivial: Remove some dead code
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Remove some dead code
- Date: Mon, 24 Sep 2018 12:24:15 +0000 (UTC)
commit bc7f00a2faad36dfe78a5eae371a431cb3d1bdf7
Author: Richard Hughes <richard hughsie com>
Date: Mon Sep 24 13:17:34 2018 +0100
trivial: Remove some dead code
We already depend on a higher AppStream version.
plugins/core/gs-plugin-appstream.c | 8 --------
1 file changed, 8 deletions(-)
---
diff --git a/plugins/core/gs-plugin-appstream.c b/plugins/core/gs-plugin-appstream.c
index 9748e1fb..22138a37 100644
--- a/plugins/core/gs-plugin-appstream.c
+++ b/plugins/core/gs-plugin-appstream.c
@@ -527,7 +527,6 @@ gs_plugin_refine_wildcard (GsPlugin *plugin,
g_autoptr(GsApp) new = NULL;
/* is compatible */
-#if AS_CHECK_VERSION(0,7,8)
if (!as_utils_unique_id_match (gs_app_get_unique_id (app),
as_app_get_unique_id (item),
AS_UNIQUE_ID_MATCH_FLAG_SCOPE |
@@ -542,13 +541,6 @@ gs_plugin_refine_wildcard (GsPlugin *plugin,
as_app_get_unique_id (item));
continue;
}
-#else
- if (!as_utils_unique_id_equal (gs_app_get_unique_id (app),
- as_app_get_unique_id (item))) {
- g_debug ("does not match unique ID constraints");
- continue;
- }
-#endif
/* does the app have an installation method */
if (as_app_get_pkgname_default (item) == NULL &&
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]