From: sinikang Date: Thu, 31 Jan 2019 06:44:00 +0000 (+0900) Subject: Remove unused code X-Git-Tag: accepted/tizen/unified/20190208.061601~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=75bf73fc5b46b2eb2a8b9faf4dad6476931f9b15;p=profile%2Fmobile%2Fapps%2Fnative%2Fciss.git Remove unused code Change-Id: I94902c4df15322e79724b1e09b1dfe0e155948a9 Signed-off-by: sinikang --- diff --git a/include/ciss-ussd.h b/include/ciss-ussd.h index 996863a..ec7942b 100644 --- a/include/ciss-ussd.h +++ b/include/ciss-ussd.h @@ -22,7 +22,5 @@ Evas_Object *_ciss_create_ussd_view(Evas_Object *parent, void *tapi_data, void *data); void _ciss_ussd_quit_cb(void *data, Evas_Object *obj, void *event_info); - -bool _ciss_check_hide_completed_popup(void *tapi_data, void *data); //CscFeature_VoiceCall_DisableUssdCompleteNoti #endif /* _CISS_USSD_H_ */ diff --git a/packaging/org.tizen.ciss.spec b/packaging/org.tizen.ciss.spec index 3839bed..b644f07 100644 --- a/packaging/org.tizen.ciss.spec +++ b/packaging/org.tizen.ciss.spec @@ -1,6 +1,6 @@ %define major 0 %define minor 1 -%define patchlevel 5 +%define patchlevel 6 Name: org.tizen.ciss Summary: CISS-MMI application diff --git a/src/ciss-main.c b/src/ciss-main.c index c03935f..24e92c9 100644 --- a/src/ciss-main.c +++ b/src/ciss-main.c @@ -41,45 +41,6 @@ static void __ciss_app_resume(void *data); static void __ciss_app_service(app_control_h service, void *data); static int __ciss_relaunch_handler(void *data); -#if 0 -static int __ciss_app_rotate(enum appcore_rm m, void *data) -{ - ciss_appdata_t *ad = data; - int r; - - DBG("Enter"); - - if (ad == NULL || ad->win_main == NULL) - return 0; - - switch (m) { - case APPCORE_RM_PORTRAIT_NORMAL: - r = 0; - break; -/*NOT suport PORTRAIT_REVERSE in Z9005, N099 - case APPCORE_RM_PORTRAIT_REVERSE: - r = 180; - break; -*/ - case APPCORE_RM_LANDSCAPE_NORMAL: - r = 270; - break; - case APPCORE_RM_LANDSCAPE_REVERSE: - r = 90; - break; - default: - r = -1; - break; - } - - if (r >= 0) - elm_win_rotation_with_resize_set(ad->win_main, r); - - DBG("Leave"); - return 0; -} -#endif - static bool __ciss_app_create(void *data) { DBG("Enter"); @@ -641,12 +602,6 @@ CISS_MODULE_EXPORT int main(int argc, char *argv[]) event_callback.resume = __ciss_app_resume; event_callback.app_control = __ciss_app_service; - //event_callback.low_memory = NULL; - //event_callback.low_battery = NULL; - //event_callback.device_orientation = NULL; - //event_callback.language_changed = __ciss_app_language_changed; - //event_callback.region_format_changed = NULL; - int ret = APP_ERROR_NONE; memset(&application_data, 0x0, sizeof(ciss_appdata_t)); diff --git a/src/ciss-tapi-request.c b/src/ciss-tapi-request.c index fcde845..dc9babb 100644 --- a/src/ciss-tapi-request.c +++ b/src/ciss-tapi-request.c @@ -951,11 +951,6 @@ void _ciss_tapi_ussd_resp_handle(int result, void *tapi_data, void *data) _ciss_view_popup_win_set_noti_type(ad, FALSE); - if (_ciss_check_hide_completed_popup(tapi_data, data) == true) { //CscFeature_VoiceCall_DisableUssdCompleteNoti - DBG("CscFeature_VoiceCall_DisableUssdCompleteNoti enabled, so complete popup not displayed!"); - return; - } - content = (Evas_Object *)_ciss_create_ussd_view(ad->layout_main, tapi_data, ad); elm_object_part_content_set(ad->layout_main, "elm.swallow.content", content); } else { @@ -1127,11 +1122,6 @@ void _ciss_tapi_sat_ussd_resp_handle(int result, void *tapi_data, void *data) _ciss_view_popup_win_set_noti_type(ad, FALSE); - if (_ciss_check_hide_completed_popup(tapi_data, data) == true) { //CscFeature_VoiceCall_DisableUssdCompleteNoti - DBG("CscFeature_VoiceCall_DisableUssdCompleteNoti enabled, so complete popup not displayed!"); - return; - } - content = (Evas_Object *)_ciss_create_ussd_view(ad->layout_main, tapi_data, ad); elm_object_part_content_set(ad->layout_main, "elm.swallow.content", content); } else { diff --git a/src/ciss-ussd.c b/src/ciss-ussd.c index 240211c..9fd184f 100644 --- a/src/ciss-ussd.c +++ b/src/ciss-ussd.c @@ -26,31 +26,6 @@ #include "ciss-tapi-request.h" //#include "csc-feature/csc-feature.h" -#if 0 /* not used API because string treate method changed */ -static int __ciss_get_ussd_string(char *ss_result_string, int length, char *szString) -{ - DBG("Enter"); - - char *ptr = NULL; - char *temp_ptr = NULL; - - if (length > 0) { - ptr = strtok_r(szString, "\n", &temp_ptr); - snprintf(ss_result_string, CISS_MMI_MAX_USSD_RESP_STRING, "%s", ptr); - - while ((ptr = strtok_r(NULL, "\n", &temp_ptr))) { - char temp_str[CISS_MMI_MAX_USSD_RESP_STRING]; - strncpy(temp_str, ss_result_string, CISS_MMI_MAX_USSD_RESP_STRING - 1); - snprintf(ss_result_string, CISS_MMI_MAX_USSD_RESP_STRING, "%s
%s", temp_str, ptr); - } - } else { - strncpy(ss_result_string, "", CISS_MMI_MAX_USSD_RESP_STRING - 1); - } - - return 0; -} -#endif - void _ciss_ussd_quit_cb(void *data, Evas_Object *obj, void *event_info) { DBG("Enter"); @@ -89,40 +64,6 @@ void _ciss_ussd_quit_cb(void *data, Evas_Object *obj, void *event_info) elm_exit(); } -#if 0 -static void __ciss_respnd_cb(void *data, Evas_Object *obj, void *event_info) -{ - - DBG("Enter"); - - ciss_appdata_t *ad = (ciss_appdata_t *)data; - _ciss_create_respond_view(ad); -} -#endif - -bool _ciss_check_hide_completed_popup(void *tapi_data, void *data) //CscFeature_VoiceCall_DisableUssdCompleteNoti -{ - bool ret = false; - -#if 0 // block lines to prevent build error - if (csc_feature_get_bool(CSC_FEATURE_DEF_BOOL_CALL_USSD_DISABLE_COMPLETE_NOTI) == CSC_FEATURE_BOOL_TRUE) { - ciss_appdata_t *ad = (ciss_appdata_t *)data; - TelSsUssdResp_t ussd_resp_info; - memset(&ussd_resp_info, 0, sizeof(TelSsUssdResp_t)); - memcpy(&ussd_resp_info, tapi_data, sizeof(TelSsUssdResp_t)); - - if (ad->tapi_event.event_type == TAPI_EVENT_SS_USSD_RESP - && ussd_resp_info.Status == CISS_USSD_TERMINATED_BY_NET - && (strncmp(ussd_resp_info.szString, "MMI Complete", 12) == 0 || ussd_resp_info.Length == 0)) { - _ciss_ussd_quit_cb(data, NULL, NULL); - ret = true; - } - } -#endif - - return ret; -} //CscFeature_VoiceCall_DisableUssdCompleteNoti - Evas_Object *_ciss_create_ussd_view(Evas_Object *parent, void *tapi_data, void *data) { DBG("Enter"); @@ -150,10 +91,6 @@ Evas_Object *_ciss_create_ussd_view(Evas_Object *parent, void *tapi_data, void * g_strlcpy(&ussd_record.ussd_string[0], &ussd_resp_info.szString[0], CISS_USSD_DATA_SIZE_MAX); } -#if 0 /* not used API because string treate method changed */ - __ciss_get_ussd_string(ussd_string, ussd_record.ussd_string_length, ussd_record.ussd_string); -#endif - #ifndef _CISS_HW_BACK_KEY Evas_Object *l_button; #endif /* !_CISS_HW_BACK_KEY */ diff --git a/src/ciss-widget.c b/src/ciss-widget.c index f4dd6c5..9eb4045 100644 --- a/src/ciss-widget.c +++ b/src/ciss-widget.c @@ -1335,18 +1335,6 @@ Evas_Object *_ciss_create_content(Evas_Object *parent, const char *text, void *d } -#if 0 -static Evas_Object *__ciss_create_toolbar_btn(Evas_Object *parent, const char *text, Evas_Smart_Cb func, void *data) -{ - retv_if(NULL == parent, NULL); - Evas_Object *btn = elm_button_add(parent); - elm_object_text_set(btn, text); - evas_object_smart_callback_add(btn, "clicked", func, data); - evas_object_show(btn); - return btn; -} -#endif - Evas_Object *_ciss_create_1_items_toolbar(ciss_appdata_t *ad, const char *label, Evas_Smart_Cb func) { Evas_Object *obj;