From d2dc0480db25d6aff634ea5cc0081997467ecfe7 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Wed, 7 Jul 2010 14:28:11 -0500 Subject: [PATCH] stk: cancelled variable is not used --- src/stk.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/stk.c b/src/stk.c index f82d49f..acb29fd 100644 --- a/src/stk.c +++ b/src/stk.c @@ -52,7 +52,6 @@ struct ofono_stk { struct ofono_atom *atom; struct stk_command *pending_cmd; void (*cancel_cmd)(struct ofono_stk *stk); - gboolean cancelled; GQueue *envelope_q; struct stk_timer timers[8]; @@ -539,8 +538,6 @@ static void stk_proactive_command_cancel(struct ofono_stk *stk) if (!stk->pending_cmd) return; - stk->cancelled = TRUE; - stk->cancel_cmd(stk); if (stk->pending_cmd) { @@ -580,8 +577,6 @@ void ofono_stk_proactive_command_notify(struct ofono_stk *stk, for (i = 0; i < length; i ++) sprintf(buf + i * 2, "%02hhx", pdu[i]); - stk->cancelled = FALSE; - stk->pending_cmd = stk_command_new_from_pdu(pdu, length); if (!stk->pending_cmd) { ofono_error("Can't parse proactive command: %s", buf); -- 2.7.4