[discident-glib] lib: Remove unimplemented async login code
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [discident-glib] lib: Remove unimplemented async login code
- Date: Mon, 3 Dec 2012 22:27:42 +0000 (UTC)
commit 0aaa37dddbadc918408ee3128e11d287d906b265
Author: Bastien Nocera <hadess hadess net>
Date: Mon Dec 3 23:27:00 2012 +0100
lib: Remove unimplemented async login code
It won't be used as-is.
discident-glib/discident-ean-glib.c | 47 -----------------------------------
1 files changed, 0 insertions(+), 47 deletions(-)
---
diff --git a/discident-glib/discident-ean-glib.c b/discident-glib/discident-ean-glib.c
index ceac94c..9048f30 100644
--- a/discident-glib/discident-ean-glib.c
+++ b/discident-glib/discident-ean-glib.c
@@ -347,50 +347,3 @@ discident_ean_new (void)
{
return g_object_new (DISCIDENT_TYPE_EAN, NULL);
}
-
-#if 0
-void
-discident_ean_login_async (DiscidentEan *ean,
- GCancellable *cancellable,
- GAsyncReadyCallback callback,
- gpointer user_data)
-{
- GSimpleAsyncResult *simple;
-
- simple = g_simple_async_result_new (G_OBJECT (directory),
- callback,
- user_data,
- discident_ean_login_async);
-
- if (cancellable != NULL) {
- g_object_set_data_full (G_OBJECT (simple), "cancellable",
- g_object_ref (cancellable), g_object_unref);
- }
-
- discident_get_gtin_file_async (directory,
- cancellable,
- on_discident_got_gtin,
- simple);
-}
-
-gboolean
-discident_ean_login_finish (DiscidentEan *ean,
- GAsyncResult *res,
- GError **error)
-{
- GSimpleAsyncResult *simple = G_SIMPLE_ASYNC_RESULT (res);
- char *ret;
-
- g_warn_if_fail (g_simple_async_result_get_source_tag (simple) == discident_ean_login_async);
-
- ret = NULL;
-
- if (g_simple_async_result_propagate_error (simple, error))
- goto out;
-
- ret = g_simple_async_result_get_op_res_gpointer (simple);
-
-out:
- return ret;
-}
-#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]