From: Denis Kenzior Date: Fri, 4 Dec 2009 22:22:27 +0000 (-0600) Subject: Get rid of list_calls in isi driver X-Git-Tag: 0.13~17 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4d5eb77de5e398131c6cc15f13318577c9d5d5bc;p=platform%2Fupstream%2Fofono.git Get rid of list_calls in isi driver --- diff --git a/drivers/isimodem/voicecall.c b/drivers/isimodem/voicecall.c index 9434adb..26d4346 100644 --- a/drivers/isimodem/voicecall.c +++ b/drivers/isimodem/voicecall.c @@ -1016,21 +1016,6 @@ static void isi_hangup(struct ofono_voicecall *ovc, cb, data); } -static void isi_list_calls(struct ofono_voicecall *ovc, - ofono_call_list_cb_t cb, void *data) -{ - struct isi_voicecall *ivc = ofono_voicecall_get_data(ovc); - struct ofono_call calls[7]; - int n, i; - - for (i = 1, n = 0; i <= 7; i++) { - if (ivc->calls[i].status != CALL_STATUS_IDLE) - calls[n++] = isi_call_as_ofono_call(&ivc->calls[i]); - } - - CALLBACK_WITH_FAILURE(cb, n, calls, data); -} - static void isi_release_all_held(struct ofono_voicecall *ovc, ofono_voicecall_cb_t cb, void *data) { @@ -1369,7 +1354,6 @@ static struct ofono_voicecall_driver driver = { .dial = isi_dial, .answer = isi_answer, .hangup = isi_hangup, - .list_calls = isi_list_calls, .hold_all_active = isi_hold_all_active, .release_all_held = isi_release_all_held, .set_udub = isi_set_udub,