summaryrefslogtreecommitdiff
path: root/libappstream-builder/plugins
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2016-01-22 14:34:03 +0000
committerRichard Hughes <richard@hughsie.com>2016-01-22 15:02:48 +0000
commit9f2ed20432118a45edecc270cfa5de79f7f632be (patch)
tree923dcc9ce145010f1663cff96465e0ec2e5d33f2 /libappstream-builder/plugins
parenta47edaf98d0bcd4384afdf203e974c94119d0494 (diff)
downloadappstream-glib-9f2ed20432118a45edecc270cfa5de79f7f632be.tar.gz
trivial: Remove some dead code
We don't generate this older style metadata anymore.
Diffstat (limited to 'libappstream-builder/plugins')
-rw-r--r--libappstream-builder/plugins/asb-plugin-hardcoded.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/libappstream-builder/plugins/asb-plugin-hardcoded.c b/libappstream-builder/plugins/asb-plugin-hardcoded.c
index c583fd3..31750ad 100644
--- a/libappstream-builder/plugins/asb-plugin-hardcoded.c
+++ b/libappstream-builder/plugins/asb-plugin-hardcoded.c
@@ -184,22 +184,6 @@ asb_plugin_process_app (AsbPlugin *plugin,
}
}
- /* has the application been updated in the last year */
- releases = as_app_get_releases (AS_APP (app));
- if (asb_context_get_api_version (plugin->ctx) < 0.8) {
- for (i = 0; i < releases->len; i++) {
- release = g_ptr_array_index (releases, i);
- secs = (g_get_real_time () / G_USEC_PER_SEC) -
- as_release_get_timestamp (release);
- days = secs / (60 * 60 * 24);
- if (secs > 0 && days < 365) {
- as_app_add_metadata (AS_APP (app),
- "X-Kudo-RecentRelease", "");
- break;
- }
- }
- }
-
/* has there been no upstream version recently */
if (releases->len > 0 &&
as_app_get_id_kind (AS_APP (app)) == AS_ID_KIND_DESKTOP &&