summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2015-12-03 10:50:48 -0600
committerDenis Kenzior <denkenz@gmail.com>2015-12-03 10:51:06 -0600
commit414ec4a2b94c1922346ec84d06a3b3d6d2ddfc3d (patch)
treefffcfe7fc919056d2e8f0ce981b41a739a096492
parent4db0659cbdfe959d7f6764a00b713f25531bc040 (diff)
downloadofono-414ec4a2b94c1922346ec84d06a3b3d6d2ddfc3d.tar.bz2
gril: Remove g_ril_reply_oem_hook_raw
-rw-r--r--gril/grilreply.c47
-rw-r--r--gril/grilreply.h10
2 files changed, 0 insertions, 57 deletions
diff --git a/gril/grilreply.c b/gril/grilreply.c
index 06e1b577..476a7ddc 100644
--- a/gril/grilreply.c
+++ b/gril/grilreply.c
@@ -217,50 +217,3 @@ no_data:
return NULL;
}
-
-void g_ril_reply_free_oem_hook(struct reply_oem_hook *oem_hook)
-{
- if (oem_hook) {
- g_free(oem_hook->data);
- g_free(oem_hook);
- }
-}
-
-struct reply_oem_hook *g_ril_reply_oem_hook_raw(GRil *gril,
- const struct ril_msg *message)
-{
- struct reply_oem_hook *reply = NULL;
- struct parcel rilp;
-
- reply = g_try_malloc0(sizeof(*reply));
- if (reply == NULL) {
- ofono_error("%s: out of memory", __func__);
- goto end;
- }
-
- g_ril_init_parcel(message, &rilp);
-
- reply->data = parcel_r_raw(&rilp, &(reply->length));
-
- if (rilp.malformed) {
- ofono_error("%s: malformed parcel", __func__);
- g_ril_reply_free_oem_hook(reply);
- reply = NULL;
- goto end;
- }
-
- g_ril_append_print_buf(gril, "{%d", reply->length);
-
- if (reply->data != NULL) {
- char *hex_dump;
- hex_dump = encode_hex(reply->data, reply->length, '\0');
- g_ril_append_print_buf(gril, "%s,%s", print_buf, hex_dump);
- g_free(hex_dump);
- }
-
- g_ril_append_print_buf(gril, "%s}", print_buf);
- g_ril_print_response(gril, message);
-
-end:
- return reply;
-}
diff --git a/gril/grilreply.h b/gril/grilreply.h
index abb85f65..90e63559 100644
--- a/gril/grilreply.h
+++ b/gril/grilreply.h
@@ -32,21 +32,11 @@
extern "C" {
#endif
-struct reply_oem_hook {
- int length;
- void *data;
-};
-
GSList *g_ril_reply_parse_get_calls(GRil *gril, const struct ril_msg *message);
int *g_ril_reply_parse_retries(GRil *gril, const struct ril_msg *message,
enum ofono_sim_password_type passwd_type);
-void g_ril_reply_free_oem_hook(struct reply_oem_hook *oem_hook);
-
-struct reply_oem_hook *g_ril_reply_oem_hook_raw(GRil *gril,
- const struct ril_msg *message);
-
#ifdef __cplusplus
}
#endif