[gnome-software: 17/20] gs-plugin-loader: Drop use of AsPool
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software: 17/20] gs-plugin-loader: Drop use of AsPool
- Date: Mon, 11 Jul 2022 08:41:48 +0000 (UTC)
commit 9b22f3df12300398b1f469892e4720b1f5c39856
Author: Philip Withnall <pwithnall endlessos org>
Date: Tue Jul 5 14:15:27 2022 +0100
gs-plugin-loader: Drop use of AsPool
It was previously used for search keyword tokenisation, but that has now
been delegated to individual plugins.
Signed-off-by: Philip Withnall <pwithnall endlessos org>
Helps: #1193
lib/gs-plugin-loader.c | 6 ------
1 file changed, 6 deletions(-)
---
diff --git a/lib/gs-plugin-loader.c b/lib/gs-plugin-loader.c
index d76fdcdd7..74e7c1e47 100644
--- a/lib/gs-plugin-loader.c
+++ b/lib/gs-plugin-loader.c
@@ -50,7 +50,6 @@ struct _GsPluginLoader
gboolean plugin_dir_dirty;
GPtrArray *file_monitors;
GsPluginStatus global_status_last;
- AsPool *as_pool;
GMutex pending_apps_mutex;
GsAppList *pending_apps; /* (nullable) (owned) */
@@ -2804,7 +2803,6 @@ gs_plugin_loader_finalize (GObject *object)
g_ptr_array_unref (plugin_loader->file_monitors);
g_hash_table_unref (plugin_loader->events_by_id);
g_hash_table_unref (plugin_loader->disallow_updates);
- g_clear_object (&plugin_loader->as_pool);
g_mutex_clear (&plugin_loader->pending_apps_mutex);
g_mutex_clear (&plugin_loader->events_by_id_mutex);
@@ -4090,10 +4088,6 @@ job_process_cb (GTask *task)
g_task_set_check_cancellable (task, FALSE);
g_task_set_return_on_cancel (task, FALSE);
- /* AppStream metadata pool, we only need it to create good search tokens */
- if (plugin_loader->as_pool == NULL)
- plugin_loader->as_pool = as_pool_new ();
-
/* set up a hang handler */
switch (action) {
case GS_PLUGIN_ACTION_GET_ALTERNATES:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]