[gnome-software/wip/async-plugin-repo-funcs: 29/30] plugin: Remove definition of gs_plugin_disable_repo() function
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/async-plugin-repo-funcs: 29/30] plugin: Remove definition of gs_plugin_disable_repo() function
- Date: Wed, 29 Jun 2022 10:20:05 +0000 (UTC)
commit 1b826ea1583d1a78bd7aaaa9efb37f4c96363f69
Author: Milan Crha <mcrha redhat com>
Date: Tue Jun 14 18:57:53 2022 +0200
plugin: Remove definition of gs_plugin_disable_repo() function
It's not used anymore. The GS_PLUGIN_ACTION_DISABLE_REPO is still
used on few other places.
lib/gs-plugin-loader.c | 3 ---
lib/gs-plugin-vfuncs.h | 32 --------------------------------
lib/gs-plugin.c | 2 --
3 files changed, 37 deletions(-)
---
diff --git a/lib/gs-plugin-loader.c b/lib/gs-plugin-loader.c
index d89ec2e5e..a7f86d5f2 100644
--- a/lib/gs-plugin-loader.c
+++ b/lib/gs-plugin-loader.c
@@ -236,7 +236,6 @@ gs_plugin_loader_helper_free (GsPluginLoaderHelper *helper)
case GS_PLUGIN_ACTION_REMOVE:
case GS_PLUGIN_ACTION_UPDATE:
case GS_PLUGIN_ACTION_DOWNLOAD:
- case GS_PLUGIN_ACTION_DISABLE_REPO:
{
GsApp *app;
GsAppList *list;
@@ -631,7 +630,6 @@ gs_plugin_loader_call_vfunc (GsPluginLoaderHelper *helper,
case GS_PLUGIN_ACTION_UPGRADE_TRIGGER:
case GS_PLUGIN_ACTION_LAUNCH:
case GS_PLUGIN_ACTION_UPDATE_CANCEL:
- case GS_PLUGIN_ACTION_DISABLE_REPO:
{
GsPluginActionFunc plugin_func = func;
ret = plugin_func (plugin, app, cancellable, &error_local);
@@ -3487,7 +3485,6 @@ gs_plugin_loader_process_thread_cb (GTask *task,
case GS_PLUGIN_ACTION_REMOVE:
case GS_PLUGIN_ACTION_SEARCH:
case GS_PLUGIN_ACTION_UPDATE:
- case GS_PLUGIN_ACTION_DISABLE_REPO:
if (!helper->anything_ran) {
g_set_error (&error,
GS_PLUGIN_ERROR,
diff --git a/lib/gs-plugin-vfuncs.h b/lib/gs-plugin-vfuncs.h
index db10ec4b0..b71940f1b 100644
--- a/lib/gs-plugin-vfuncs.h
+++ b/lib/gs-plugin-vfuncs.h
@@ -506,36 +506,4 @@ gboolean gs_plugin_add_langpacks (GsPlugin *plugin,
GCancellable *cancellable,
GError **error);
-/**
- * gs_plugin_disable_repo:
- * @plugin: a #GsPlugin
- * @repo: a #GsApp representing a repository
- * @cancellable: a #GCancellable, or %NULL
- * @error: a #GError, or %NULL
- *
- * Disable the repository. This is a voluntary function, the plugin implements
- * it only if it supports it. If implemented, its pair function gs_plugin_enable_repo()
- * should be implemented as well.
- *
- * Plugins are expected to send progress notifications to the UI using
- * gs_app_set_progress() using the passed in @app.
- *
- * All functions can block, but should sent progress notifications, e.g. using
- * gs_app_set_progress() if they will take more than tens of milliseconds
- * to complete.
- *
- * On failure the error message returned will usually only be shown on the
- * console, but they can also be retrieved using gs_plugin_loader_get_events().
- *
- * NOTE: Once the action is complete, the plugin must set the new state of @app
- * to %GS_APP_STATE_AVAILABLE.
- *
- * Returns: %TRUE for success or if not relevant
- *
- * Since: 41
- **/
-gboolean gs_plugin_disable_repo (GsPlugin *plugin,
- GsApp *repo,
- GCancellable *cancellable,
- GError **error);
G_END_DECLS
diff --git a/lib/gs-plugin.c b/lib/gs-plugin.c
index 46f7a55a1..400ba20eb 100644
--- a/lib/gs-plugin.c
+++ b/lib/gs-plugin.c
@@ -1471,8 +1471,6 @@ gs_plugin_action_to_function_name (GsPluginAction action)
return "gs_plugin_add_alternates";
if (action == GS_PLUGIN_ACTION_GET_LANGPACKS)
return "gs_plugin_add_langpacks";
- if (action == GS_PLUGIN_ACTION_DISABLE_REPO)
- return "gs_plugin_disable_repo";
return NULL;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]