From 21979ed92d01c3c2b0088f3a6a938256e262fc8e Mon Sep 17 00:00:00 2001 From: Jihoon Kim Date: Tue, 29 Aug 2017 10:10:26 +0900 Subject: [PATCH] Remove unused variables Change-Id: I9227819101e8f3a6330092080b9160a044e099c1 Signed-off-by: Jihoon Kim --- src/w-input-selector.cpp | 7 +------ src/w-input-smartreply.cpp | 4 +--- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/src/w-input-selector.cpp b/src/w-input-selector.cpp index 8646781..d72a097 100755 --- a/src/w-input-selector.cpp +++ b/src/w-input-selector.cpp @@ -210,7 +210,6 @@ static void _keyboard_clicked_cb(void *data, Evas_Object * obj, void *event_info static void __ise_smartreply_gl_sel(void *data, Evas_Object *obj, void *event_info) { - App_Data* app_data = (App_Data*) data; Elm_Object_Item *item = (Elm_Object_Item *) event_info; if (item) { @@ -842,7 +841,6 @@ unsigned int _update_smartreply_items(void *user_data) Elm_Object_Item *first; Elm_Object_Item *menu; - Elm_Object_Item *pos; unsigned int i = 0; unsigned int len = 0; @@ -883,8 +881,6 @@ unsigned int _update_smartreply_items(void *user_data) itc->func.state_get = NULL; itc->func.del = NULL; - pos = menu; - for (i = 0; i < len; i++) { char *reply = "hello"; unsigned int j; @@ -898,7 +894,6 @@ unsigned int _update_smartreply_items(void *user_data) continue; PRINTFUNC(DLOG_DEBUG, "SmartReply = [%d]%s", i, reply); - for (j = 0; j < template_list.size(); j++) { const char *template_str; @@ -916,7 +911,7 @@ unsigned int _update_smartreply_items(void *user_data) if (matched == true) continue; - pos = elm_genlist_item_append(app_data->genlist, + elm_genlist_item_append(app_data->genlist, itc, (void *)(uintptr_t)i, NULL, diff --git a/src/w-input-smartreply.cpp b/src/w-input-smartreply.cpp index 3a0624a..aa1f5e6 100644 --- a/src/w-input-smartreply.cpp +++ b/src/w-input-smartreply.cpp @@ -317,8 +317,6 @@ bool input_smartreply_get_reply(void) bool input_smartreply_get_reply_async(void) { - int ret; - if (g_input_smartreply_data == NULL) { PRINTFUNC(DLOG_ERROR, "InputSmartreplyData uninitialized"); return false; @@ -334,7 +332,7 @@ bool input_smartreply_get_reply_async(void) return false; } - ret = smartreply_service_get_replies_async(g_input_smartreply_data->caller_id, + smartreply_service_get_replies_async(g_input_smartreply_data->caller_id, g_input_smartreply_data->sender, g_input_smartreply_data->message, _input_smartreply_get_reply_callback); -- 2.7.4