remove the unused callback registration in Network
authorMyoungJune Park <mj2004.park@samsung.com>
Wed, 5 Sep 2012 01:59:05 +0000 (10:59 +0900)
committerMyoungJune Park <mj2004.park@samsung.com>
Wed, 5 Sep 2012 05:25:50 +0000 (14:25 +0900)
  - removed the unused code in setting_plugin_reset

Change-Id: I8a39052f90f7a74dd6140ae4373603d1a0e855b5

setting-network/src/setting-network.c

index 7ca2f5d..96664d5 100755 (executable)
@@ -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;