gcr: Remove the waiting field in the system prompt CallClosure
authorStef Walter <stefw@gnome.org>
Fri, 21 Sep 2012 07:25:58 +0000 (09:25 +0200)
committerStef Walter <stefw@gnome.org>
Mon, 22 Oct 2012 13:58:55 +0000 (15:58 +0200)
 * This field wasn't being used for anything.

https://bugzilla.gnome.org/show_bug.cgi?id=678611

gcr/gcr-system-prompt.c

index 36c4500..b66e30e 100644 (file)
@@ -145,7 +145,6 @@ typedef struct {
        GSource *timeout;
        GMainContext *context;
        GCancellable *cancellable;
-       gboolean waiting;
 } CallClosure;
 
 static void
@@ -947,7 +946,6 @@ on_perform_prompt_complete (GObject *source,
 {
        GSimpleAsyncResult *res = G_SIMPLE_ASYNC_RESULT (user_data);
        GcrSystemPrompt *self = GCR_SYSTEM_PROMPT (g_async_result_get_source_object (user_data));
-       CallClosure *closure = g_simple_async_result_get_op_res_gpointer (res);
        GError *error = NULL;
        GVariant *retval;
 
@@ -955,8 +953,6 @@ on_perform_prompt_complete (GObject *source,
        if (error != NULL) {
                g_simple_async_result_take_error (res, error);
                g_simple_async_result_complete_in_idle (res);
-       } else {
-               closure->waiting = TRUE;
        }
 
        if (retval)