[gnome-software] trivial: Do not profile the hardcoded blacklist
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Do not profile the hardcoded blacklist
- Date: Thu, 14 Apr 2016 17:25:01 +0000 (UTC)
commit 0f308e330b652b65dfc645e963746f7323d73283
Author: Richard Hughes <richard hughsie com>
Date: Thu Apr 14 13:42:55 2016 +0100
trivial: Do not profile the hardcoded blacklist
This is more overhead setting up the profile object.
src/plugins/gs-plugin-hardcoded-blacklist.c | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/src/plugins/gs-plugin-hardcoded-blacklist.c b/src/plugins/gs-plugin-hardcoded-blacklist.c
index a2149d4..e9de91b 100644
--- a/src/plugins/gs-plugin-hardcoded-blacklist.c
+++ b/src/plugins/gs-plugin-hardcoded-blacklist.c
@@ -73,16 +73,12 @@ gs_plugin_refine_app (GsPlugin *plugin,
"tracker-preferences.desktop",
"Uninstall*.desktop",
NULL };
- g_autoptr(AsProfileTask) ptask = NULL;
/* not set yet */
if (gs_app_get_id (app) == NULL)
return TRUE;
/* search */
- ptask = as_profile_start (plugin->profile,
- "hardcoded-blacklist{%s}",
- gs_app_get_id (app));
for (i = 0; app_globs[i] != NULL; i++) {
if (fnmatch (app_globs[i], gs_app_get_id (app), 0) == 0) {
gs_app_add_category (app, "Blacklisted");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]