Remove unused function 40/94140/1
authorsungwook79.park <sungwook79.park@samsung.com>
Thu, 27 Oct 2016 06:37:34 +0000 (15:37 +0900)
committersungwook79.park <sungwook79.park@samsung.com>
Thu, 27 Oct 2016 06:37:34 +0000 (15:37 +0900)
Change-Id: Ica3bfe697f1ad8f84b94c5b29db847bc572e38a4
Signed-off-by: sungwook79.park <sungwook79.park@samsung.com>
src/include/ise-stt-mode.h
src/ise-stt-mode.cpp

index 06108a6..fdf439b 100644 (file)
@@ -111,7 +111,6 @@ void ise_show_stt_mode(Evas_Object *win);
 void ise_hide_stt_mode();
 void start_by_press(VoiceData *voicedata);
 void set_animation_state(VoiceData *voicedata);
-void show_popup_toast(const char *text, bool check_img);
 void show_error_message(VoiceData *voicedata, stt_error_e reason);
 void voice_get_string(const char *keyValue, VoiceData *voicedata);
 void voice_result_string_flush();
index 1e77c0a..3f9a92e 100644 (file)
@@ -146,45 +146,6 @@ static void set_guide_text(VoiceData *vd, const char* text, bool translatable)
     }
 }
 
-void show_popup_toast(const char *text, bool check_img)
-{
-    Evas_Object *popup;
-
-    popup = elm_popup_add(win_main);
-#ifdef _CIRCLE
-    elm_object_style_set(popup, "toast/circle");
-#else
-    elm_object_style_set(popup, "toast");
-#endif
-    elm_popup_orient_set(popup, ELM_POPUP_ORIENT_BOTTOM);
-    evas_object_size_hint_weight_set(popup, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
-
-    if (check_img) {
-        std::string path = app_get_resource_path();
-        std::string path_ic = path + "/images/toast_check_icon.png";
-
-        Evas_Object * img = elm_image_add(popup);
-        elm_image_file_set(img, path_ic.c_str(), NULL);
-        elm_object_part_content_set(popup, "toast,icon", img);
-    }
-
-    if (text) {
-#ifdef _CIRCLE
-        elm_object_part_text_set(popup, "elm.text", text);
-#else
-        elm_object_text_set(popup, text);
-#endif
-    }
-
-    eext_object_event_callback_add(popup, EEXT_CALLBACK_BACK, _popup_back_cb, NULL);
-    evas_object_smart_callback_add(popup, "dismissed", _popup_close_cb, NULL);
-    evas_object_smart_callback_add(popup, "block,clicked", _popup_back_cb, NULL);
-
-    elm_popup_timeout_set(popup, 2.0);
-    evas_object_layer_set(popup, 32001);
-    evas_object_show(popup);
-}
-
 static void _popup_close_cb(void *data, Evas_Object *obj, void *event_info)
 {
     if (obj) {