Code cleanup - remove unused code 15/237015/1
authorsinikang <sinikang@samsung.com>
Wed, 24 Jun 2020 05:23:30 +0000 (14:23 +0900)
committersinikang <sinikang@samsung.com>
Wed, 24 Jun 2020 05:23:30 +0000 (14:23 +0900)
Change-Id: I433e9bbca3c603c90979696d9dbca91d0e73e8b8
Signed-off-by: sinikang <sinikang@samsung.com>
callmgr-popup/src/callmgr-popup-main.c
common/src/callmgr-util.c
module/include/callmgr-audio.h
module/src/callmgr-audio.c
module/src/callmgr-vr.c
packaging/call-manager.spec
service/src/callmgr-core.c

index 3d165b03d7e49da52803c94ecb513f4929d36c25..845b0e6bc4b8df3c5ae16b14d3333ced83e7ed4c 100644 (file)
@@ -47,12 +47,7 @@ static bool __callmgr_popup_app_create(void *data)
                elm_exit();
        }
        /* ToDo: Need check replace */
-       //eo = (Evas_Object*)app_get_preinitialized_window(PACKAGE);
-       //if (NULL == eo) {
-               eo = elm_win_add(NULL, PACKAGE, ELM_WIN_BASIC);
-       //} else {
-       //      DBG("Process pool");
-       //}
+       eo = elm_win_add(NULL, PACKAGE, ELM_WIN_BASIC);
 
        if (!eo) {
                return NULL;
index 813ab31c17220094eebab585874c2028ae0a192c..ce4ff0767605bf39783f40881f29f3f23a4509be 100644 (file)
@@ -497,37 +497,6 @@ int _callmgr_util_launch_callui_by_sat(int sim_slot)
        return 0;
 }
 
-/*
- * system session daemon can't receive result-callback from application.
- * so, do not use this code and refer the 'SetPopupResult' method.
-static void __callmgr_util_popup_reply_cb(app_control_h request, app_control_h reply, app_control_result_e result, void *user_data)
-{
-       dbg("__callmgr_util_popup_reply_cb");
-       int ret = -1;
-       _callmgr_util_popup_data_t *popup_data = (_callmgr_util_popup_data_t *)user_data;
-       if (popup_data) {
-               if (result == APP_CONTROL_RESULT_SUCCEEDED) {
-                       char *ext_data = NULL;
-                       cm_util_popup_result_e popup_result = CM_UTIL_POPUP_RESP_CANCEL;
-
-                       ret = app_control_get_extra_data(reply, "RESULT", &ext_data);
-                       if (APP_CONTROL_ERROR_NONE == ret) {
-                               if (ext_data) {
-                                       info("popup result: [%s]", ext_data);
-                                       popup_result = atoi(ext_data);
-                                       g_free(ext_data);
-                                       popup_data->popup_result_cb(popup_data->popup_type, (void*)popup_result, popup_data->user_data);
-                               }
-                       } else {
-                               err("app_control_get_extra_data failed");
-                       }
-               }
-               g_free(popup_data);
-       }
-       return;
-}
-*/
-
 int _callmgr_util_launch_popup(call_popup_type popup_type, int info, const char* number, int active_sim, callmgr_util_popup_result_cb cb, void *user_data)
 {
        dbg("_callmgr_util_launch_popup: popup_type(%d), info(%d)", popup_type, info);
index debde7d2e53a930d634f6a877566a964e215d220..2a4c3f15228b201a4df6d9c3498904f735c84f89 100644 (file)
@@ -86,7 +86,6 @@ int _callmgr_audio_get_audio_route(callmgr_audio_handle_h audio_handle, callmgr_
 int _callmgr_audio_set_extra_vol(callmgr_audio_handle_h audio_handle, gboolean is_extra_vol);
 int _callmgr_audio_get_extra_vol(callmgr_audio_handle_h audio_handle, gboolean *o_is_extra_vol);
 
-int _callmgr_audio_set_audio_tx_mute(callmgr_audio_handle_h audio_handle, gboolean is_mute_state);
 int _callmgr_audio_get_audio_tx_mute_state(callmgr_audio_handle_h audio_handle, gboolean *o_is_mute_state);
 
 int _callmgr_audio_set_noise_reduction(callmgr_audio_handle_h audio_handle, gboolean is_noise_reduction_on);
@@ -108,12 +107,5 @@ int _callmgr_audio_set_calldomain(callmgr_audio_handle_h audio_handle, callmgr_a
 int _callmgr_audio_set_nw_band(callmgr_audio_handle_h audio_handle, callmgr_audio_nw_band_e nw_band);
 int _callmgr_audio_set_bt_band(callmgr_audio_handle_h audio_handle, callmgr_audio_bt_band_e bt_band);
 void _callmgr_audio_update_call_parameters(callmgr_audio_handle_h audio_handle);
-
-#if 0 //Remove later if unused
-int _callmgr_audio_get_calldomain(callmgr_audio_handle_h audio_handle, callmgr_audio_call_domain_e *call_domain);
-int _callmgr_audio_get_nw_band(callmgr_audio_handle_h audio_handle, callmgr_audio_nw_band_e *nw_band);
-int _callmgr_audio_get_bt_band(callmgr_audio_handle_h audio_handle, callmgr_audio_bt_band_e *bt_band);
-#endif
-
 #endif //__CALLMGR_AUDIO_H__
 
index ae83ce30440917777cf025df28f2f6c7659c9a80..12f315a1c389520d93a6120e149e807ff2041c20 100644 (file)
@@ -435,120 +435,6 @@ int _callmgr_audio_is_sound_device_available(callmgr_audio_handle_h audio_handle
        return 0;
 }
 
-#if 0
-static int __callmgr_audio_get_sound_route(callmgr_audio_handle_h audio_handle, callmgr_audio_route_e route, sound_session_call_mode_e *sound_route, callmgr_audio_device_e *active_device)
-{
-       CM_RETURN_VAL_IF_FAIL(audio_handle, -1);
-
-       if (route & CALLMGR_AUDIO_DEVICE_EARJACK_E) {
-               gboolean is_earjack_available = FALSE;
-               _callmgr_audio_is_sound_device_available(CALLMGR_AUDIO_DEVICE_EARJACK_E, &is_earjack_available);
-               if (is_earjack_available) {
-                       info("route path : SOUND_SESSION_CALL_MODE_VOICE_WITH_AUDIO_JACK");
-                       *sound_route = SOUND_SESSION_CALL_MODE_VOICE_WITH_AUDIO_JACK;
-                       *active_device = CALLMGR_AUDIO_DEVICE_EARJACK_E;
-                       return 0;
-               }
-       }
-
-       if (route & CALLMGR_AUDIO_DEVICE_SPEAKER_E) {
-               info("route path : SOUND_SESSION_CALL_MODE_VOICE_WITH_BUILTIN_SPEAKER");
-               *sound_route = SOUND_SESSION_CALL_MODE_VOICE_WITH_BUILTIN_SPEAKER;
-               *active_device = CALLMGR_AUDIO_DEVICE_SPEAKER_E;
-               return 0;
-       }
-
-       if (route & CALLMGR_AUDIO_DEVICE_RECEIVER_E) {
-               info("route path : SOUND_SESSION_CALL_MODE_VOICE_WITH_BUILTIN_RECEIVER");
-               *sound_route = SOUND_SESSION_CALL_MODE_VOICE_WITH_BUILTIN_RECEIVER;
-               *active_device = CALLMGR_AUDIO_DEVICE_RECEIVER_E;
-               return 0;
-       }
-
-       if (route & CALLMGR_AUDIO_ROUTE_BT_E) {
-               info("route path : SOUND_SESSION_CALL_MODE_VOICE_WITH_BLUETOOTH");
-               *sound_route = SOUND_SESSION_CALL_MODE_VOICE_WITH_BLUETOOTH;
-               *active_device = CALLMGR_AUDIO_DEVICE_BT_E;
-               return 0;
-       }
-
-       *sound_route = SOUND_SESSION_CALL_MODE_VOICE_WITH_BUILTIN_RECEIVER;
-       *active_device = CALLMGR_AUDIO_DEVICE_RECEIVER_E;
-       err("No available route");
-       return -1;
-}
-#endif
-
-static int __callmgr_audio_set_audio_control_state(callmgr_audio_handle_h audio_handle, sound_device_h route)
-{
-       CM_RETURN_VAL_IF_FAIL(audio_handle, -1);
-#if 0
-       int is_noise_reduction = 0;
-
-       /* ToDo : vconf will be changed to MM API */
-       switch (route) {
-       case SOUND_SESSION_CALL_MODE_VOICE_WITH_BLUETOOTH:
-/*     case SOUND_ROUTE_IN_HEADSET_OUT_HEADSET: */
-       case SOUND_SESSION_CALL_MODE_VOICE_WITH_AUDIO_JACK:
-               if (vconf_set_bool(VCONFKEY_CALL_NOISE_REDUCTION_STATE_BOOL, FALSE) < 0) {
-                       warn("vconf set bool failed");
-               }
-
-               if (sound_manager_call_set_extra_volume(FALSE) < 0) {
-                       warn("sound_manager_call_set_extra_volume() failed");
-               }
-
-               break;
-
-       case SOUND_SESSION_CALL_MODE_VOICE_WITH_BUILTIN_SPEAKER:
-               if (vconf_set_bool(VCONFKEY_CALL_NOISE_REDUCTION_STATE_BOOL, FALSE) < 0) {
-                       warn("vconf set bool failed");
-               }
-
-               if (audio_handle->is_extra_vol == TRUE) {
-                       if (sound_manager_call_set_extra_volume(TRUE) < 0) {
-                               warn("sound_manager_call_set_extra_volume() failed");
-                       }
-               } else {
-                       if (sound_manager_call_set_extra_volume(FALSE) < 0) {
-                               warn("sound_manager_call_set_extra_volume() failed");
-                       }
-               }
-               break;
-       case SOUND_SESSION_CALL_MODE_VOICE_WITH_BUILTIN_RECEIVER:
-       default:
-               {
-                       if (vconf_set_bool(VCONFKEY_CALL_NOISE_REDUCTION_STATE_BOOL, audio_handle->is_noise_reduction) < 0) {
-                               warn("vconf set bool failed");
-                       }
-
-                       if (audio_handle->is_extra_vol == TRUE) {
-                               if (sound_manager_call_set_extra_volume(TRUE) < 0) {
-                                       warn("sound_manager_call_set_extra_volume() failed");
-                               }
-                       } else {
-                               if (sound_manager_call_set_extra_volume(FALSE) < 0) {
-                                       warn("sound_manager_call_set_extra_volume() failed");
-                               }
-                       }
-               }
-               break;
-       }
-
-       /*Save current Noise Reduction status*/
-       if (vconf_get_bool(VCONFKEY_CALL_NOISE_REDUCTION_STATE_BOOL, &is_noise_reduction) < 0) {
-               warn("vconf get bool failed");
-       }
-
-       audio_handle->is_noise_reduction = is_noise_reduction;
-       if (vconf_set_bool(VCONFKEY_CISSAPPL_NOISE_REDUCTION_BOOL, is_noise_reduction) < 0) {
-               warn("vconf set bool failed");
-       }
-#endif
-
-       return 0;
-}
-
 void _callmgr_audio_update_call_parameters(callmgr_audio_handle_h audio_handle)
 {
        CM_RETURN_IF_FAIL(audio_handle);
@@ -611,14 +497,6 @@ void _callmgr_audio_update_call_parameters(callmgr_audio_handle_h audio_handle)
        params = g_strdup_printf("call-type=%s;call-domain=%s;network-band=%s;bt-band=%s", call_type_value, call_domain_value, nw_band_value, bt_band_value);
        dbg("sound parameters : %s", params);
 
-#if 0
-               ret = sound_manager_set_call_parameters(params);
-               g_free(params);
-               if (ret < 0) {
-                       err("sound_manager_set_call_parameters() failed");
-               }
-#else
-
        /* Send parameters to pulse audio server */
        result = g_dbus_connection_call_sync(system_dbus_conn,
                                                        pa_bus_name,
@@ -631,7 +509,6 @@ void _callmgr_audio_update_call_parameters(callmgr_audio_handle_h audio_handle)
                                                        2000,
                                                        NULL,
                                                        &err);
-#endif
 
        g_free(params);
 
@@ -724,28 +601,12 @@ int _callmgr_audio_set_audio_route(callmgr_audio_handle_h audio_handle, callmgr_
                /*      since Tizen 4.0, soung mgr offers new API for removing device from stream routing,
                        sound_manager_remove_all_devices_for_stream_routing() can be used for removing current routing device
                        instead of sound_manager_remove_device_for_stream_routing()*/
-#if 0
-               ret = sound_manager_get_device_list(SOUND_DEVICE_ALL_MASK, &device_list);
-               if (ret != SOUND_MANAGER_ERROR_NONE) {
-                       err("sound_manager_get_device_list() failed. [%d][%s]", ret, get_error_message(ret));
-                       return -1;
-               }
-               __callmgr_audio_get_sound_device(audio_handle->current_route, device_list, &sound_device);
-               ret = sound_manager_remove_device_for_stream_routing(audio_handle->sound_stream_handle, sound_device);
-               if (ret != SOUND_MANAGER_ERROR_NONE) {
-                       err("sound_manager_remove_device_for_stream_routing() failed:[%d]", ret);
-               }
-               audio_handle->current_route = -1;
 
-               sound_manager_free_device_list(device_list);
-               device_list = NULL;
-#else
                ret = sound_manager_remove_all_devices_for_stream_routing(audio_handle->sound_stream_handle);
                if (ret != SOUND_MANAGER_ERROR_NONE) {
                        err("sound_manager_remove_all_devices_for_stream_routing() failed:[%d]", ret);
                }
                audio_handle->current_route = -1;
-#endif
 
        }
 
@@ -758,7 +619,6 @@ int _callmgr_audio_set_audio_route(callmgr_audio_handle_h audio_handle, callmgr_
        }
 
        __callmgr_audio_get_sound_device(device_type, device_list, &sound_device);
-       __callmgr_audio_set_audio_control_state(audio_handle, sound_device);
        ret = sound_manager_add_device_for_stream_routing(audio_handle->sound_stream_handle, sound_device);
        if (ret != SOUND_MANAGER_ERROR_NONE) {
                err("sound_manager_add_device_for_stream_routing() failed:[%d]", ret);
@@ -878,21 +738,6 @@ int _callmgr_audio_get_extra_vol(callmgr_audio_handle_h audio_handle, gboolean *
        return 0;
 }
 
-int _callmgr_audio_set_audio_tx_mute(callmgr_audio_handle_h audio_handle, gboolean is_mute_state)
-{
-#if 0 /* Sound manager API does not support on SPIN. This is requied with Q modem*/
-       int ret = -1;
-       ret = sound_manager_set_call_mute(SOUND_TYPE_CALL, is_mute_state);
-       if (ret != SOUND_MANAGER_ERROR_NONE) {
-               err("sound_manager_set_call_mute() failed:[%d]", ret);
-               return -1;
-       }
-       audio_handle->is_mute_state = is_mute_state;
-       info("updated mute state : %d", audio_handle->is_mute_state);
-#endif
-       return 0;
-}
-
 int _callmgr_audio_get_audio_tx_mute_state(callmgr_audio_handle_h audio_handle, gboolean *o_is_mute_state)
 {
        CM_RETURN_VAL_IF_FAIL(audio_handle, -1);
@@ -996,32 +841,3 @@ int _callmgr_audio_set_bt_band(callmgr_audio_handle_h audio_handle, callmgr_audi
 
        return 0;
 }
-
-#if 0 //Remove later if unused
-int _callmgr_audio_get_calldomain(callmgr_audio_handle_h audio_handle, callmgr_audio_call_domain_e *call_domain)
-{
-       CM_RETURN_VAL_IF_FAIL(audio_handle, -1);
-       CM_RETURN_VAL_IF_FAIL(call_domain, -1);
-
-       *call_domain = audio_handle->call_domain;
-       return 0;
-}
-
-int _callmgr_audio_get_nw_band(callmgr_audio_handle_h audio_handle, callmgr_audio_nw_band_e *nw_band)
-{
-       CM_RETURN_VAL_IF_FAIL(audio_handle, -1);
-       CM_RETURN_VAL_IF_FAIL(nw_band, -1);
-
-       *nw_band = audio_handle->nw_band;
-       return 0;
-}
-
-int _callmgr_audio_get_bt_band(callmgr_audio_handle_h audio_handle, callmgr_audio_bt_band_e *bt_band)
-{
-       CM_RETURN_VAL_IF_FAIL(audio_handle, -1);
-       CM_RETURN_VAL_IF_FAIL(bt_band, -1);
-
-       *bt_band = audio_handle->bt_band;
-       return 0;
-}
-#endif
index b9b0b3b665fd46c849dd4237c5c70b278d41eb45..785d108b71ffcdee01c852540c2663374e57b13d 100644 (file)
@@ -164,16 +164,6 @@ static gboolean __callmgr_vr_state_changed_cb_real(void *user_data)
        return FALSE;
 }
 
-/*static gboolean __callmgr_vr_recording_status_changed_cb_real(void *user_data)
-{
-       callmgr_vr_cb_info_t *info = (callmgr_vr_cb_info_t *)user_data;
-       callmgr_vr_handle_h *vr_handle = (callmgr_vr_handle_h *)info->user_data;
-
-       g_free(info);
-
-       return FALSE;
-}*/
-
 static gboolean __callmgr_vr_limit_reached_cb_real(void *user_data)
 {
        callmgr_vr_cb_info_t *info = (callmgr_vr_cb_info_t *)user_data;
@@ -255,20 +245,9 @@ static void __callmgr_vr_recording_status_changed_cb(unsigned long long elapsed_
        callmgr_vr_handle_h vr_handle = (callmgr_vr_handle_h)user_data;
        CM_RETURN_IF_FAIL(vr_handle);
 
-//     callmgr_vr_cb_info_t *info = (callmgr_vr_cb_info_t *)calloc(1, sizeof(callmgr_vr_cb_info_t));
-//     if(NULL == info) {
-//             err("memory allocation failed...");
-//             return;
-//     }
        vr_handle->elapsed_time = elapsed_time;
        if (elapsed_time % 10000 == 0)  // leave a log every 10 seconds
                info("elapsed_time[%llu], file_size[%llu]", elapsed_time, file_size);
-
-//     info->cb_type = CM_VR_CB_STATUS;
-//     info->cb_data.recording_status.elapsed_time = elapsed_time;
-//     info->cb_data.recording_status.file_size = file_size;
-//     info->user_data = vr_handle;
-//     g_idle_add(__callmgr_vr_recording_status_changed_cb_real, info);
 }
 
 static void __callmgr_vr_limit_reached_cb(recorder_recording_limit_type_e limit_type, void *user_data)
@@ -641,14 +620,6 @@ int _callmgr_vr_start_record(callmgr_vr_handle_h vr_handle, const char* call_num
                {
                        ret_val = __callmgr_vr_create(vr_handle);
                        if (ret_val >= 0) {
-/* Todo need to add check for answering machine */
-/*
-       #ifdef _VC_ANSWERING_MEMO
-                               if (FALSE == bnormal_rec) {
-                                       voicecall_answer_msg_set_recording_session(pcall_core->papp_snd);
-                               }
-       #endif
-*/
                                ret_val = __callmgr_vr_ready(vr_handle);
                                if (ret_val < 0) {
                                        err("__callmgr_vr_ready error : %d", ret_val);
@@ -807,15 +778,7 @@ static int __callmgr_vr_create_filename(callmgr_vr_handle_h vr_handle)
                memset(vr_handle->file_path, 0, sizeof(vr_handle->file_path));
                memset(vr_handle->file_name, 0, sizeof(vr_handle->file_name));
 
-//             if (vr_handle->is_answering == FALSE) {
-                       snprintf(vr_handle->file_path, sizeof(vr_handle->file_path), "%s", CM_VR_FEX_CLIPS_PATH_PHONE);
-//             } else {
-//                     if (g_storage_type == CALLMGR_VR_STORAGE_PHONE) {
-//                             snprintf(vr_handle->file_path, sizeof(vr_handle->file_path), "%s/%s", CM_VR_FEX_CLIPS_PATH_PHONE, CM_VR_ANSWER_MEMO_FOLDER_NAME);
-//                     } else {
-//                             snprintf(vr_handle->file_path, sizeof(vr_handle->file_path), "%s/%s", CM_VR_FEX_CLIPS_PATH_MMC, CM_VR_ANSWER_MEMO_FOLDER_NAME);
-//                     }
-//             }
+               snprintf(vr_handle->file_path, sizeof(vr_handle->file_path), "%s", CM_VR_FEX_CLIPS_PATH_PHONE);
 
                if (FALSE == __callmgr_vr_is_dir_exist(vr_handle->file_path)) {
                        info("Directory is not exist. Create it");
@@ -1085,37 +1048,24 @@ static int __callmgr_vr_update_answering_msg_media_info(callmgr_vr_handle_h vr_h
        dbg("full path : %s", full_path);
        ret = media_content_connect();
        if (ret == MEDIA_CONTENT_ERROR_NONE) {
-#if 0 /*remove media product header*/
-               ret = media_cloud_info_insert_to_db_without_info(full_path, MEDIA_CONTENT_STORAGE_ANSWERMEMO_EX, &info);
-               if (ret == MEDIA_CONTENT_ERROR_NONE) {
-#endif
-                       result = 0;
+               result = 0;
 
-                       char *display_name = NULL;
-                       ret = media_info_get_display_name(info, &display_name);
-                       if (ret != MEDIA_CONTENT_ERROR_NONE) {
-                               err("media_info_get_display_name().. [%d]", ret);
-                               result = -1;
-                       }
-                       free(display_name);
-                       display_name = NULL;
+               char *display_name = NULL;
+               ret = media_info_get_display_name(info, &display_name);
+               if (ret != MEDIA_CONTENT_ERROR_NONE) {
+                       err("media_info_get_display_name().. [%d]", ret);
+                       result = -1;
+               }
+               free(display_name);
+               display_name = NULL;
 
-                       ret = media_info_update_to_db(info);
-                       if (ret != MEDIA_CONTENT_ERROR_NONE) {
-                               err("media_info_update_to_db().. [%d]", ret);
-                               result = -1;
-                       }
-#if 0 /*remove media product header*/
-               } else {
-                       err("media_cloud_info_insert_to_db_without_info().. [%d]", ret);
+               ret = media_info_update_to_db(info);
+               if (ret != MEDIA_CONTENT_ERROR_NONE) {
+                       err("media_info_update_to_db().. [%d]", ret);
                        result = -1;
                }
-#endif
-               /* info can't be true due to media_cloud_info_insert_to_db_without_info blocked*/
-               /*if (info) {*/
-                       media_info_destroy(info);
-                       info = NULL;
-               /*}*/
+               media_info_destroy(info);
+               info = NULL;
 
                media_content_disconnect();
        } else {
index 7984e039bdf0f7f8b0ce857791f2ca1f7fb68093..1a573025bbf192f607c72d0d38f0bde9d4f4d934 100644 (file)
@@ -1,6 +1,6 @@
 %define major 0
 %define minor 2
-%define patchlevel 65
+%define patchlevel 66
 %define ext_feature 0
 
 Name:           call-manager
index 1152ba2cd3db3cfdf907aa5413d786eb978fb4e5..834f909dcce6d6d75fc46936457d0237dba30161 100644 (file)
@@ -2043,14 +2043,6 @@ static void __callmgr_core_process_vr_events(callmgr_vr_status_event_e status, c
                }
 
                _callmgr_util_launch_popup(CALL_POPUP_REC_STATUS, sub_info, NULL, 0, NULL, NULL);
-//             if (core_data->vr_handle->is_answering) {
-//             //if (ad->answering_memo_status != VCUI_ANSWERING_MEMO_NONE) {
-//                     //_callmgr_util_launch_popup(CALL_POPUP_TOAST, CALL_POPUP_TOAST_SWAP_CALL, NULL, 0 , NULL, NULL);
-//                     //_callmgr_popup_create_toast_msg(_("IDS_CALL_TPOP_RECORDED_MESSAGE_SAVED"));
-//             } else {
-//                     //_callmgr_util_launch_popup(CALL_POPUP_TOAST, CALL_POPUP_TOAST_SWAP_CALL, NULL, 0 , NULL, NULL);
-//                     //_callmgr_popup_create_toast_msg(_("IDS_CALL_POP_RECORDING_SAVED"));
-//             }
        }       break;
        default:
                warn("Invalid event");
@@ -2989,11 +2981,6 @@ int _callmgr_core_process_set_mute_state(callmgr_core_data_t *core_data, gboolea
        __callmgr_core_convert_tel_call_type(call_type, &cm_call_type);
 
        if (cm_call_type == CALL_TYPE_VOICE_E) {
-               if (_callmgr_audio_set_audio_tx_mute(core_data->audio_handle, is_mute_state) < 0) {
-                       err("_callmgr_audio_set_audio_tx_mute() failed");
-                       return -1;
-               }
-
                if (_callmgr_telephony_set_audio_tx_mute(core_data->telephony_handle, is_mute_state) < 0) {
                        err("_callmgr_telephony_set_audio_tx_mute() failed");
                        return -1;