Get rid of list_calls in isi driver
authorDenis Kenzior <denkenz@gmail.com>
Fri, 4 Dec 2009 22:22:27 +0000 (16:22 -0600)
committerDenis Kenzior <denkenz@gmail.com>
Fri, 4 Dec 2009 22:52:30 +0000 (16:52 -0600)
drivers/isimodem/voicecall.c

index 9434adb..26d4346 100644 (file)
@@ -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,