summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2015-11-20 22:51:57 -0600
committerDenis Kenzior <denkenz@gmail.com>2015-11-20 22:51:57 -0600
commit322c41c4273483a4da742e30e2c9f453249f986c (patch)
tree14f5e727a9714cadd9d006afbde5f4c292baf3f7
parent45d59d04a9d046ec9901f1c91aa4ffda7f41e050 (diff)
downloadofono-322c41c4273483a4da742e30e2c9f453249f986c.tar.bz2
gril: Remove g_ril_request_deactivate_data_call
-rw-r--r--gril/grilrequest.c42
-rw-r--r--gril/grilrequest.h10
2 files changed, 0 insertions, 52 deletions
diff --git a/gril/grilrequest.c b/gril/grilrequest.c
index 38278528..b2321e8d 100644
--- a/gril/grilrequest.c
+++ b/gril/grilrequest.c
@@ -41,9 +41,6 @@
#include "util.h"
#include "common.h"
-/* DEACTIVATE_DATA_CALL request parameters */
-#define DEACTIVATE_DATA_CALL_NUM_PARAMS 2
-
/* SETUP_DATA_CALL_PARAMS request parameters */
#define SETUP_DATA_CALL_PARAMS 7
#define DATA_PROFILE_DEFAULT_STR "0"
@@ -70,45 +67,6 @@
error->error = 0; \
} while (0)
-gboolean g_ril_request_deactivate_data_call(GRil *gril,
- const struct req_deactivate_data_call *req,
- struct parcel *rilp,
- struct ofono_error *error)
-{
- gchar *cid_str = NULL;
- gchar *reason_str = NULL;
-
- if (req->reason != RIL_DEACTIVATE_DATA_CALL_NO_REASON &&
- req->reason != RIL_DEACTIVATE_DATA_CALL_RADIO_SHUTDOWN) {
- goto error;
- }
-
- parcel_init(rilp);
- parcel_w_int32(rilp, DEACTIVATE_DATA_CALL_NUM_PARAMS);
-
- cid_str = g_strdup_printf("%d", req->cid);
- parcel_w_string(rilp, cid_str);
-
- /*
- * TODO: airplane-mode; change reason to '1',
- * which means "radio power off".
- */
- reason_str = g_strdup_printf("%d", req->reason);
- parcel_w_string(rilp, reason_str);
-
- g_ril_append_print_buf(gril, "(%s,%s)", cid_str, reason_str);
-
- g_free(cid_str);
- g_free(reason_str);
-
- OFONO_NO_ERROR(error);
- return TRUE;
-
-error:
- OFONO_EINVAL(error);
- return FALSE;
-}
-
void g_ril_request_set_net_select_manual(GRil *gril,
const char *mccmnc,
struct parcel *rilp)
diff --git a/gril/grilrequest.h b/gril/grilrequest.h
index a84af284..76572463 100644
--- a/gril/grilrequest.h
+++ b/gril/grilrequest.h
@@ -34,11 +34,6 @@
extern "C" {
#endif
-struct req_deactivate_data_call {
- gint cid;
- guint reason;
-};
-
struct req_setup_data_call {
guint tech;
guint data_profile;
@@ -50,11 +45,6 @@ struct req_setup_data_call {
unsigned req_cid;
};
-gboolean g_ril_request_deactivate_data_call(GRil *gril,
- const struct req_deactivate_data_call *req,
- struct parcel *rilp,
- struct ofono_error *error);
-
void g_ril_request_set_net_select_manual(GRil *gril,
const char *mccmnc,
struct parcel *rilp);