gril: Remove g_ril_request_call_fwd and related

This commit is contained in:
Denis Kenzior 2015-11-04 23:08:52 -06:00
parent 282b254a5d
commit 3b1578286b
2 changed files with 0 additions and 50 deletions

View File

@ -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)
{

View File

@ -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);