base-sim: remove unused wait_for_unlock_id in SendPinPukContext

Commit d27e40ae9 ("core: new `Initializing' state in the global modem
state machine") added a 'wait_for_unlock_id' field to SendPinPukContext,
but never actually set it up.
This commit is contained in:
Ben Chan
2017-07-03 10:29:06 +02:00
committed by Aleksander Morgado
parent 524acd7596
commit dfcffbae04
-4
View File
@@ -505,15 +505,11 @@ typedef struct {
MMBaseSim *self;
GSimpleAsyncResult *result;
GError *save_error;
gulong wait_for_unlock_id;
} SendPinPukContext;
static void
send_pin_puk_context_complete_and_free (SendPinPukContext *ctx)
{
if (ctx->wait_for_unlock_id)
g_signal_handler_disconnect (ctx->self->priv->modem,
ctx->wait_for_unlock_id);
if (ctx->save_error)
g_error_free (ctx->save_error);
g_simple_async_result_complete (ctx->result);