Apply tizen 3.0 based product patchsets
[platform/core/connectivity/bluetooth-frwk.git] / bt-api / bt-device.c
index 8bb283d..815f8dc 100644 (file)
@@ -739,62 +739,6 @@ BT_EXPORT_API int bluetooth_get_profile_trusted(
        return result;
 }
 
-BT_EXPORT_API int bluetooth_set_profile_restricted(
-               const bluetooth_device_address_t *device_address,
-               int profile, int restricted)
-{
-       int result;
-
-       BT_CHECK_PARAMETER(device_address, return);
-       BT_CHECK_ENABLED(return);
-
-       BT_INIT_PARAMS();
-       BT_ALLOC_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param);
-
-       g_array_append_vals(in_param1, device_address, sizeof(bluetooth_device_address_t));
-       g_array_append_vals(in_param2, &profile, sizeof(int));
-       g_array_append_vals(in_param3, &restricted, sizeof(int));
-
-       result = _bt_send_request(BT_BLUEZ_SERVICE, BT_SET_PROFILE_RESTRICTED,
-                       in_param1, in_param2, in_param3, in_param4, &out_param);
-
-       if (result == BLUETOOTH_ERROR_NONE)
-               BT_DBG("SUCCESSFUL");
-
-       BT_FREE_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param);
-
-       return result;
-}
-
-BT_EXPORT_API int bluetooth_get_profile_restricted(
-               const bluetooth_device_address_t *device_address,
-               int profile, int *restricted)
-{
-       int result;
-       int restrict_profile = 0;
-       BT_CHECK_PARAMETER(device_address, return);
-       BT_CHECK_ENABLED(return);
-
-       BT_INIT_PARAMS();
-       BT_ALLOC_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param);
-
-       g_array_append_vals(in_param1, device_address, sizeof(bluetooth_device_address_t));
-       g_array_append_vals(in_param2, &profile, sizeof(int));
-
-       result = _bt_send_request(BT_BLUEZ_SERVICE, BT_GET_PROFILE_RESTRICTED,
-                       in_param1, in_param2, in_param3, in_param4, &out_param);
-
-       if (result == BLUETOOTH_ERROR_NONE) {
-               restrict_profile = g_array_index(out_param, guint, 0);
-               BT_DBG("SUCCESSFUL");
-       }
-       BT_DBG("Restricted %d", restrict_profile);
-       *restricted = restrict_profile;
-       BT_FREE_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param);
-
-       return result;
-}
-
 BT_EXPORT_API int bluetooth_passkey_reply(char *passkey, gboolean reply)
 {
        int result;