iBeacon: Remove the ibeacon report signal handling
[platform/core/connectivity/bluetooth-frwk.git] / bt-api / bt-event-handler.c
index 993eea4..ca129f0 100644 (file)
@@ -370,43 +370,6 @@ done:
        return le_dev_info;
 }
 
-static bluetooth_ibeacon_device_info_t *__bt_get_ibeacon_device_info_in_message(GVariant *parameters, int *ret)
-{
-       bluetooth_ibeacon_device_info_t *ibeacon_dev_info = NULL;
-       const char *address = NULL;
-       short addr_type = 0;
-       int company_id = 0;
-       int ibeacon_type = 0;
-       int major_id = 0;
-       int minor_id = 0;
-       int measured_power = 0;
-       const char *uuid = NULL;
-       int result = BLUETOOTH_ERROR_NONE;
-
-       g_variant_get(parameters, "(i&snnn&snnn)", &result, &address,
-                       &addr_type, &company_id, &ibeacon_type, &uuid, &major_id, &minor_id, &measured_power);
-       ibeacon_dev_info = g_malloc0(sizeof(bluetooth_ibeacon_device_info_t));
-       if (ibeacon_dev_info == NULL) {
-               result = BLUETOOTH_ERROR_MEMORY_ALLOCATION;
-               goto done;
-       }
-
-       _bt_convert_addr_string_to_type(ibeacon_dev_info->device_address.addr, address);
-       ibeacon_dev_info->addr_type = addr_type;
-       ibeacon_dev_info->company_id = company_id;
-       ibeacon_dev_info->ibeacon_type = ibeacon_type;
-       ibeacon_dev_info->major_id = major_id;
-       ibeacon_dev_info->minor_id = minor_id;
-       ibeacon_dev_info->measured_power = measured_power;
-       ibeacon_dev_info->uuid_len = strlen(uuid);
-       memcpy(ibeacon_dev_info->uuid, uuid, ibeacon_dev_info->uuid_len);
-done:
-
-       *ret = result;
-
-       return ibeacon_dev_info;
-}
-
 gboolean __bt_reliable_disable_cb(gpointer user_data)
 {
        BT_DBG("+");
@@ -786,18 +749,6 @@ void __bt_adapter_le_event_filter(GDBusConnection *connection,
                }
 
                g_free(le_device_info);
-       } else if (strcasecmp(signal_name, BT_IBEACON_DEVICE_FOUND) == 0) {
-               bluetooth_ibeacon_device_info_t *ibeacon_device_info;
-               BT_DBG("BT_IBEACON_DEVICE_FOUND");
-               ibeacon_device_info = __bt_get_ibeacon_device_info_in_message(parameters,
-                                                               &result);
-               ret_if(ibeacon_device_info == NULL);
-
-               _bt_common_event_cb(BLUETOOTH_EVENT_REMOTE_IBEACON_DEVICE_FOUND,
-                               result, ibeacon_device_info,
-                               event_info->cb, event_info->user_data);
-
-               g_free(ibeacon_device_info);
        }
 }