[gnome-software] Remove the unused gs_plugin_loader_get_state_for_app()
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] Remove the unused gs_plugin_loader_get_state_for_app()
- Date: Thu, 28 Jan 2016 15:03:15 +0000 (UTC)
commit 7243508505d9a7f47d6d201d6c5e2fc85be59c4d
Author: Richard Hughes <richard hughsie com>
Date: Thu Jan 28 12:03:55 2016 +0000
Remove the unused gs_plugin_loader_get_state_for_app()
src/gs-plugin-loader.c | 24 ------------------------
src/gs-plugin-loader.h | 2 --
2 files changed, 0 insertions(+), 26 deletions(-)
---
diff --git a/src/gs-plugin-loader.c b/src/gs-plugin-loader.c
index 92db90a..f88ed47 100644
--- a/src/gs-plugin-loader.c
+++ b/src/gs-plugin-loader.c
@@ -2653,30 +2653,6 @@ gs_plugin_loader_app_action_finish (GsPluginLoader *plugin_loader,
/******************************************************************************/
-
-/**
- * gs_plugin_loader_get_state_for_app:
- **/
-AsAppState
-gs_plugin_loader_get_state_for_app (GsPluginLoader *plugin_loader, GsApp *app)
-{
- GsPluginLoaderPrivate *priv = gs_plugin_loader_get_instance_private (plugin_loader);
- AsAppState state = AS_APP_STATE_UNKNOWN;
- GsApp *tmp;
- guint i;
-
- g_mutex_lock (&priv->pending_apps_mutex);
- for (i = 0; i < priv->pending_apps->len; i++) {
- tmp = g_ptr_array_index (priv->pending_apps, i);
- if (g_strcmp0 (gs_app_get_id (tmp), gs_app_get_id (app)) == 0) {
- state = gs_app_get_state (tmp);
- break;
- }
- }
- g_mutex_unlock (&priv->pending_apps_mutex);
- return state;
-}
-
/**
* gs_plugin_loader_get_pending:
**/
diff --git a/src/gs-plugin-loader.h b/src/gs-plugin-loader.h
index 73eaeab..f5b7efb 100644
--- a/src/gs-plugin-loader.h
+++ b/src/gs-plugin-loader.h
@@ -217,8 +217,6 @@ void gs_plugin_loader_refresh_async (GsPluginLoader
*plugin_loader,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
-AsAppState gs_plugin_loader_get_state_for_app (GsPluginLoader *plugin_loader,
- GsApp *app);
GPtrArray *gs_plugin_loader_get_pending (GsPluginLoader *plugin_loader);
GsApp *gs_plugin_loader_dedupe (GsPluginLoader *plugin_loader,
GsApp *app);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]