[gnome-software/wip/async-plugin-repo-funcs: 9/32] gs-plugin: Remove unused gs_plugin_get_action_supported()



commit 93e71456b0c336c7c2f50e6c6cf44888d62a354d
Author: Milan Crha <mcrha redhat com>
Date:   Tue Jun 14 15:25:36 2022 +0200

    gs-plugin: Remove unused gs_plugin_get_action_supported()

 lib/gs-plugin.c | 26 --------------------------
 lib/gs-plugin.h |  2 --
 2 files changed, 28 deletions(-)
---
diff --git a/lib/gs-plugin.c b/lib/gs-plugin.c
index 6e87814ae..fbca833fc 100644
--- a/lib/gs-plugin.c
+++ b/lib/gs-plugin.c
@@ -2009,32 +2009,6 @@ gs_plugin_update_cache_state_for_repository (GsPlugin *plugin,
        }
 }
 
-/**
- * gs_plugin_get_action_supported:
- * @plugin: a #GsPlugin
- * @action: a #GsPluginAction
- *
- * Checks whether the @plugin supports @action, meaning whether
- * the @plugin can execute the @action.
- *
- * Returns: Whether the @plugin supports the @action
- *
- * Since: 41
- **/
-gboolean
-gs_plugin_get_action_supported (GsPlugin *plugin,
-                               GsPluginAction action)
-{
-       const gchar *function_name;
-
-       g_return_val_if_fail (GS_IS_PLUGIN (plugin), FALSE);
-
-       function_name = gs_plugin_action_to_function_name (action);
-       g_return_val_if_fail (function_name != NULL, FALSE);
-
-       return gs_plugin_get_symbol (plugin, function_name) != NULL;
-}
-
 /**
  * gs_plugin_ask_untrusted:
  * @plugin: a #GsPlugin
diff --git a/lib/gs-plugin.h b/lib/gs-plugin.h
index 15bfa6194..49226b10b 100644
--- a/lib/gs-plugin.h
+++ b/lib/gs-plugin.h
@@ -279,8 +279,6 @@ void                gs_plugin_repository_changed            (GsPlugin       *plugin,
 void           gs_plugin_update_cache_state_for_repository
                                                        (GsPlugin *plugin,
                                                         GsApp *repository);
-gboolean       gs_plugin_get_action_supported          (GsPlugin       *plugin,
-                                                        GsPluginAction  action);
 gboolean       gs_plugin_ask_untrusted                 (GsPlugin       *plugin,
                                                         const gchar    *title,
                                                         const gchar    *msg,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]