Remove reference to bt tethering key 79/119879/2 accepted/tizen_mobile accepted/tizen/mobile/20170322.235412 accepted/tizen/unified/20170322.235438 submit/tizen/20170321.111317
authorLukasz Stanislawski <l.stanislaws@samsung.com>
Mon, 20 Mar 2017 10:50:31 +0000 (11:50 +0100)
committerLukasz Stanislawski <l.stanislaws@samsung.com>
Tue, 21 Mar 2017 07:03:25 +0000 (08:03 +0100)
The value of RUNTIME_INFO_KEY_BLUETOOTH_TETHERING_ENABLED is not being used since
e5159bf1ba231b00162c71a4877645288288e5d5. This patch compleatly removes all its
references from code, so runtime info key could be removed by FW API team.

Change-Id: I2a495b46728960b95db452518ebb18712c4274f8

src/modules/connection/connection.c

index a8623e8..270facf 100644 (file)
@@ -312,12 +312,6 @@ static int wake_up_cb(void *data)
        return OK;
 }
 
-
-static void _update_status_ri(runtime_info_key_e key, void *user_data)
-{
-       on_noti(tel_list.handle[0], user_data);
-}
-
 static void _wifi_status_changed_cb(wifi_device_state_e state, void *user_data)
 {
        int status = 0;
@@ -406,15 +400,6 @@ static int __init_tel(void *data)
                return FAIL;
        }
 
-       ret = util_runtime_info_set_changed_cb(RUNTIME_INFO_KEY_BLUETOOTH_TETHERING_ENABLED,
-                       _update_status_ri, data);
-
-       if (ret != 0) {
-               _E("util_runtime_info_set_changed_cb failed");
-               __deinit_tel();
-               return FAIL;
-       }
-
        on_noti(tel_list.handle[0], data);
 
        return OK;
@@ -427,7 +412,6 @@ static void __deinit_tel()
 
        util_system_settings_unset_changed_cb(SYSTEM_SETTINGS_KEY_NETWORK_FLIGHT_MODE, _flight_mode);
        util_wifi_unset_device_state_changed_cb(_wifi_status_changed_cb);
-       util_runtime_info_unset_changed_cb(RUNTIME_INFO_KEY_BLUETOOTH_TETHERING_ENABLED, _update_status_ri);
 
        if (tel_list.count)
                telephony_deinit(&tel_list);