Remove build warning
[platform/core/uifw/inputdelegator.git] / src / w-input-emoticon.cpp
index 2240448..d73b692 100755 (executable)
 
 #include "Debug.h"
 #include "w-input-selector.h"
-#include "w-input-smartreply.h"
 
 #define EMOTICON_CNT 27
 
-static int previous_icon = -1;
-
 using namespace std;
 
 typedef struct {
     int code;
-    char* name;
+    const char* name;
 }Emoticon;
 
 Emoticon emoticon_info[EMOTICON_CNT] = {
@@ -95,21 +92,6 @@ _rotary_selector_rotary_cb(void *data, Evas_Object *obj, Eext_Rotary_Event_Info
        return ECORE_CALLBACK_PASS_ON;
 }
 
-static char *_access_info_prepend_cb(void *data, Evas_Object *obj)
-{
-   PRINTFUNC(DLOG_DEBUG, "%s", __func__);
-
-   std::string text;
-
-   if (previous_icon == 10 || previous_icon == 11){
-               text = std::string("Page") + " " +std::string(dgettext(PACKAGE, emoticon_info[previous_icon].name));
-               text = text + " " + gettext("WDS_TTS_TBBODY_DOUBLE_TAP_TO_SEND");
-   } else {
-          text = std::string("Page");
-   }
-   return strdup(text.c_str());
-}
-
 static void _rotary_selector_item_clicked(void *data, Evas_Object *obj, void *event_info)
 {
     PRINTFUNC(DLOG_DEBUG, "%s", __func__);
@@ -136,11 +118,7 @@ static void _rotary_selector_item_clicked(void *data, Evas_Object *obj, void *ev
     const Eina_Unicode unicode_event[2] = { emoticon_info[i].code, 0 };
     char* utf_8 = eina_unicode_unicode_to_utf8(unicode_event, &length);
 
-    input_smartreply_send_feedback(utf_8);
-       if(ad->reply_type == REPLY_APP_CONTROL)
-        reply_to_sender_by_appcontrol(data, (const char*)utf_8, "emoticon");
-       else
-        reply_to_sender_by_callback((const char*)utf_8, "emoticon");
+    reply_to_sender_by_callback((const char*)utf_8, "emoticon");
 
     PRINTFUNC(SECURE_DEBUG, "[%d]%s", i, utf_8);
     if (utf_8)
@@ -162,7 +140,6 @@ void ise_show_emoticon_popup_rotary(void *data)
     if (!ad)
         return;
 
-    Eext_Object_Item *first_it;
 
     Evas_Object *rotary_selector = eext_rotary_selector_add(ad->naviframe);
 //    uxt_theme_object_replace_color(rotary_selector, "B01153", "AO0117");
@@ -172,8 +149,6 @@ void ise_show_emoticon_popup_rotary(void *data)
         Evas_Object *img = NULL;
         Eext_Object_Item *item = eext_rotary_selector_item_append(rotary_selector);
 
-        if (i == 0) first_it = item;
-
         img = elm_image_add(rotary_selector);
         elm_image_file_set(img, get_emoticon_file_name(i), NULL);
         eext_rotary_selector_item_part_content_set(item, "item,bg_image", EEXT_ROTARY_SELECTOR_ITEM_STATE_NORMAL, img);