From 3b1578286bdecb8232ab2d26b58a99515726883c Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Wed, 4 Nov 2015 23:08:52 -0600 Subject: gril: Remove g_ril_request_call_fwd and related --- gril/grilrequest.c | 39 --------------------------------------- gril/grilrequest.h | 11 ----------- 2 files changed, 50 deletions(-) (limited to 'gril') diff --git a/gril/grilrequest.c b/gril/grilrequest.c index c7252232..874f3c5c 100644 --- a/gril/grilrequest.c +++ b/gril/grilrequest.c @@ -894,45 +894,6 @@ void g_ril_request_screen_state(GRil *gril, g_ril_append_print_buf(gril, "(%d)", state); } -void g_ril_request_call_fwd(GRil *gril, const struct req_call_fwd *req, - struct parcel *rilp) -{ - parcel_init(rilp); - - parcel_w_int32(rilp, req->action); - parcel_w_int32(rilp, req->type); - parcel_w_int32(rilp, req->cls); - - g_ril_append_print_buf(gril, "(type: %d cls: %d ", req->type, req->cls); - - if (req->number != NULL) { - parcel_w_int32(rilp, req->number->type); - parcel_w_string(rilp, (char *) req->number->number); - - g_ril_append_print_buf(gril, "%s number type: %d number: " - "%s time: %d) ", print_buf, - req->number->type, req->number->number, - req->time); - } else { - /* - * The following values have no real meaning for - * activation/deactivation/erasure actions, but - * apparently rild expects them, so fields need to - * be filled. Otherwise there is no response. - */ - - parcel_w_int32(rilp, 0x81); /* TOA unknown */ - parcel_w_string(rilp, "1234567890"); - g_ril_append_print_buf(gril, "%s number type: %d number: " - "%s time: %d) ", print_buf, - 0x81, "1234567890", - req->time); - - } - - parcel_w_int32(rilp, req->time); -} - void g_ril_request_set_preferred_network_type(GRil *gril, int net_type, struct parcel *rilp) { diff --git a/gril/grilrequest.h b/gril/grilrequest.h index 99316a0a..f0b8a3b9 100644 --- a/gril/grilrequest.h +++ b/gril/grilrequest.h @@ -34,14 +34,6 @@ extern "C" { #endif -struct req_call_fwd { - int action; - int type; - int cls; - const struct ofono_phone_number *number; - int time; -}; - struct req_deactivate_data_call { gint cid; guint reason; @@ -232,9 +224,6 @@ void g_ril_request_screen_state(GRil *gril, int state, struct parcel *rilp); -void g_ril_request_call_fwd(GRil *gril, const struct req_call_fwd *req, - struct parcel *rilp); - void g_ril_request_set_preferred_network_type(GRil *gril, int net_type, struct parcel *rilp); -- cgit v1.2.3