diff options
author | Denis Kenzior <denis.kenzior@intel.com> | 2009-05-12 17:18:46 -0500 |
---|---|---|
committer | Marcel Holtmann <marcel.holtmann@intel.com> | 2009-05-12 19:09:57 -0700 |
commit | 95e9c0dcf2e72dbce58717c31a95c466ee07b943 (patch) | |
tree | c21ddc2a8c2b323dc3c60d5280f5d2cb10fca502 /src/voicecall.c | |
parent | e9ab6dd8efb708dc7381b16deff4316ade205887 (diff) | |
download | ofono-95e9c0dcf2e72dbce58717c31a95c466ee07b943.tar.bz2 |
Remove some other unused variables
Diffstat (limited to 'src/voicecall.c')
-rw-r--r-- | src/voicecall.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/voicecall.c b/src/voicecall.c index 7a5a4b9d..f649a910 100644 --- a/src/voicecall.c +++ b/src/voicecall.c @@ -150,7 +150,6 @@ static DBusMessage *voicecall_get_properties(DBusConnection *conn, DBusMessageIter dict; const char *status; const char *callerid; - //char timebuf[512]; const char *timestr = ""; reply = dbus_message_new_method_return(msg); @@ -1139,9 +1138,9 @@ static gboolean real_emit_call_list_changed(void *data) static void emit_call_list_changed(struct ofono_modem *modem) { - //struct voicecalls_data *calls = modem->voicecalls; - #ifdef DELAY_EMIT + struct voicecalls_data *calls = modem->voicecalls; + if (!(calls->flags & VOICECALLS_FLAG_UPDATING_CALL_LIST)) { calls->flags |= VOICECALLS_FLAG_UPDATING_CALL_LIST; g_timeout_add(0, real_emit_call_list_changed, modem); @@ -1174,9 +1173,9 @@ static gboolean real_emit_multiparty_call_list_changed(void *data) static void emit_multiparty_call_list_changed(struct ofono_modem *modem) { - //struct voicecalls_data *calls = modem->voicecalls; - #ifdef DELAY_EMIT + struct voicecalls_data *calls = modem->voicecalls; + if (!(calls->flags & VOICECALLS_FLAG_UPDATING_MPTY_CALL_LIST)) { calls->flags |= VOICECALLS_FLAG_UPDATING_MPTY_CALL_LIST; g_timeout_add(0, real_emit_multiparty_call_list_changed, modem); @@ -1242,7 +1241,6 @@ void ofono_voicecall_notify(struct ofono_modem *modem, const struct ofono_call * struct voicecalls_data *calls = modem->voicecalls; struct voicecall *v; struct ofono_call *newcall = NULL; - //const char *member; ofono_debug("Got a voicecall event, status: %d, id: %u, number: %s", call->status, call->id, call->phone_number); |