[gnome-online-accounts] Revert "daemon: Add a synchronous version of goa_provider_get_all"
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-online-accounts] Revert "daemon: Add a synchronous version of goa_provider_get_all"
- Date: Tue, 17 Apr 2018 15:31:37 +0000 (UTC)
commit 548de336b3c6b31466d0576c184f2a5ad5d6d421
Author: Debarshi Ray <debarshir gnome org>
Date: Tue Apr 17 15:43:59 2018 +0200
Revert "daemon: Add a synchronous version of goa_provider_get_all"
This was only necessary to initialize the backends at startup. The
Telepathy provider was the only backend that needed initialization,
and it has now been removed.
This reverts commit ee7318aab581d42f743122240581ff986bd6e30e.
https://bugzilla.gnome.org/show_bug.cgi?id=795322
src/daemon/goadaemon.c | 46 ----------------------------------------------
1 files changed, 0 insertions(+), 46 deletions(-)
---
diff --git a/src/daemon/goadaemon.c b/src/daemon/goadaemon.c
index 903af2e..bfc5f86 100644
--- a/src/daemon/goadaemon.c
+++ b/src/daemon/goadaemon.c
@@ -91,52 +91,6 @@ static void goa_daemon_reload_configuration (GoaDaemon *self);
G_DEFINE_TYPE (GoaDaemon, goa_daemon, G_TYPE_OBJECT);
-/* ---------------------------------------------------------------------------------------------------- */
-
-typedef struct
-{
- GError **error;
- GList **out_providers;
- GMainLoop *loop;
- gboolean op_res;
-} GetAllSyncData;
-
-static void
-get_all_providers_sync_cb (GObject *source_object,
- GAsyncResult *res,
- gpointer user_data)
-{
- GetAllSyncData *data = (GetAllSyncData *) user_data;
-
- data->op_res = goa_provider_get_all_finish (data->out_providers, res, data->error);
- g_main_loop_quit (data->loop);
-}
-
-static gboolean
-get_all_providers_sync (GCancellable *cancellable,
- GList **out_providers,
- GError **error)
-{
- GetAllSyncData data;
-
- data.error = error;
- data.out_providers = out_providers;
-
- /* HACK: Since telepathy-glib doesn't use the thread-default
- * GMainContext for invoking the asynchronous callbacks, we can't
- * push a new GMainContext here.
- */
- data.loop = g_main_loop_new (NULL, FALSE);
-
- goa_provider_get_all (get_all_providers_sync_cb, &data);
- g_main_loop_run (data.loop);
- g_main_loop_unref (data.loop);
-
- return data.op_res;
-}
-
-/* ---------------------------------------------------------------------------------------------------- */
-
static void
goa_daemon_constructed (GObject *object)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]