From: MyoungJune Park Date: Wed, 5 Sep 2012 01:59:05 +0000 (+0900) Subject: remove the unused callback registration in Network X-Git-Tag: 2.0_alpha~38^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d5b84d41b416544c7182b1e723368fdf5eee9f22;p=apps%2Fcore%2Fpreloaded%2Fsettings.git remove the unused callback registration in Network - removed the unused code in setting_plugin_reset Change-Id: I8a39052f90f7a74dd6140ae4373603d1a0e855b5 --- diff --git a/setting-network/src/setting-network.c b/setting-network/src/setting-network.c index 7ca2f5d..96664d5 100755 --- a/setting-network/src/setting-network.c +++ b/setting-network/src/setting-network.c @@ -1131,12 +1131,6 @@ const char *setting_network_get_act_str(TelNetworkSystemType_t type) } } - -void __default_tapi_response_cb(TapiHandle *handle, int result, void *data, void *user_data) -{ -} - - UG_MODULE_API int setting_plugin_reset(service_h service, void *priv) { SETTING_TRACE_BEGIN; @@ -1160,7 +1154,7 @@ UG_MODULE_API int setting_plugin_reset(service_h service, void *priv) if (tapi_handle) { SETTING_TRACE_DEBUG("tel_init sucessfull"); //1.tel_select_network_automatic - int tapi_ret = tel_select_network_automatic(tapi_handle, __default_tapi_response_cb, NULL); + int tapi_ret = tel_select_network_automatic(tapi_handle, NULL, NULL); if (tapi_ret != TAPI_API_SUCCESS) { ret++; SETTING_TRACE_ERROR("tel_select_network_automatic. tapi_ret=%d", tapi_ret); @@ -1169,7 +1163,7 @@ UG_MODULE_API int setting_plugin_reset(service_h service, void *priv) //2.tel_set_network_band tapi_ret = tel_set_network_band(tapi_handle, TAPI_NETWORK_BAND_MODE_ONLY, TAPI_NETWORK_BAND_TYPE_ANY, - __default_tapi_response_cb, NULL); + NULL, NULL); if (tapi_ret != TAPI_API_SUCCESS) { ret++; SETTING_TRACE_ERROR("tel_set_network_band. tapi_ret=%d", tapi_ret); @@ -1190,7 +1184,7 @@ UG_MODULE_API int setting_plugin_reset(service_h service, void *priv) } //Reset connections info.. - // -> need to cowork with CSC + // -> need to cowork with CSC //ret += excuteCmd("/usr/bin/dbus-send", 1, NET_CON_RESET_DBUS_PARA); SETTING_TRACE_END;