From: Jihoon Kim Date: Tue, 7 Apr 2020 00:25:45 +0000 (+0900) Subject: Remove unused functions X-Git-Tag: accepted/tizen/5.5/unified/20200409.124115~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=592e29fcfcd0e9d50b47aeb86f474a6b77f3e239;p=platform%2Fcore%2Fuifw%2Fcapi-ui-sticker.git Remove unused functions Change-Id: I71e4ad9659a4eb8a15b9663969397c2690abec43 Signed-off-by: Jihoon Kim --- diff --git a/receiver/inc/message.h b/receiver/inc/message.h index 791a9aa..597ee7a 100644 --- a/receiver/inc/message.h +++ b/receiver/inc/message.h @@ -20,8 +20,6 @@ #ifndef __MESSAGE_H__ #define __MESSAGE_H__ -bool message_sink_init(message_port_message_cb callback, void *user_data); -void message_sink_shutdown(void); bool send_message(const char *cmd, const char *data); #endif /* __MESSAGE_H__ */ diff --git a/receiver/src/message.cpp b/receiver/src/message.cpp index 79b04fd..e1c4689 100644 --- a/receiver/src/message.cpp +++ b/receiver/src/message.cpp @@ -23,40 +23,6 @@ #define EVENT_NAME "event.org.tizen.sticker-receiver.user_event" -static int port_id = -1; - -bool message_sink_init(message_port_message_cb callback, void *user_data) -{ - port_id = message_port_register_local_port(MESSAGE_PORT_REMOTE_NAME, callback, user_data); - if (port_id < 0) - { - LOGW("Function message_port_register_local_port() failed."); - return false; - } - - return true; -} - -void message_sink_shutdown(void) -{ - int ret; - bool exists = false; - - port_id = -1; - - ret = message_port_check_remote_port(REMOTE_APP_ID, MESSAGE_PORT_REMOTE_NAME, &exists); - if (exists) - { - ret = message_port_unregister_local_port(port_id); - if (ret != MESSAGE_PORT_ERROR_NONE) - LOGE("Function message_port_unregister_local_port() failed."); - } - else if (ret != MESSAGE_PORT_ERROR_NONE) - { - LOGE("Function message_port_check_remote_port() failed."); - } -} - bool send_message(const char *cmd, const char *data) { bool result = false;