From 170e051483854d20a6863cfc16095b46f53d94da Mon Sep 17 00:00:00 2001 From: Hyunho Kang Date: Tue, 12 Jul 2016 22:53:42 +0900 Subject: [PATCH] Remove unused functions Change-Id: I896957796b2e9492124097dfe1e744a6e05a2340 Signed-off-by: Hyunho Kang --- src/message-port.c | 36 ++++++------------------------------ 1 file changed, 6 insertions(+), 30 deletions(-) diff --git a/src/message-port.c b/src/message-port.c index 4d4699f..f3f3957 100755 --- a/src/message-port.c +++ b/src/message-port.c @@ -1145,7 +1145,7 @@ out: return registration_id; } - +/* LCOV_EXCL_START */ void __list_free_port_list(gpointer data) { port_list_info_s *n = (port_list_info_s *)data; @@ -1154,7 +1154,9 @@ void __list_free_port_list(gpointer data) FREE_AND_NULL(n->port_name); FREE_AND_NULL(n); } +/* LCOV_EXCL_STOP */ +/* LCOV_EXCL_START */ static void __hash_destory_local_value(gpointer data) { message_port_local_port_info_s *mli = (message_port_local_port_info_s *)data; @@ -1164,7 +1166,9 @@ static void __hash_destory_local_value(gpointer data) free(mli); } } +/* LCOV_EXCL_STOP */ +/* LCOV_EXCL_START */ static void __hash_destory_remote_value(gpointer data) { message_port_remote_app_info_s *mri = (message_port_remote_app_info_s *)data; @@ -1177,6 +1181,7 @@ static void __hash_destory_remote_value(gpointer data) free(mri); } } +/* LCOV_EXCL_STOP */ static bool __initialize(void) { @@ -1602,32 +1607,3 @@ int messageport_send_bidirectional_trusted_message(int id, const char *remote_ap return __message_send_bidirectional_message(id, remote_app_id, remote_port, true, message); } -int messageport_get_local_port_name(int id, char **name) -{ - message_port_local_port_info_s *local_info; - int ret = __get_local_port_info(id, &local_info); - - if (ret != MESSAGEPORT_ERROR_NONE) - return ret; - - *name = strdup(local_info->port_name); - - if (*name == NULL) - return MESSAGEPORT_ERROR_OUT_OF_MEMORY; - - return MESSAGEPORT_ERROR_NONE; -} - -int messageport_check_trusted_local_port(int id, bool *trusted) -{ - message_port_local_port_info_s *local_info; - int ret = __get_local_port_info(id, &local_info); - - if (ret != MESSAGEPORT_ERROR_NONE) - return ret; - - *trusted = local_info->is_trusted; - - return MESSAGEPORT_ERROR_NONE;; -} - -- 2.7.4