Reduce the predefined logic (PredefinedPreprocessor)
[platform/core/connectivity/bluetooth-frwk.git] / bt-service / services / device / bt-service-core-device.c
index 32b43c7..50f2731 100644 (file)
@@ -41,9 +41,7 @@
 #include "bt-service-device-internal.h"
 #include "bt-service-event.h"
 #include "bt-service-event-receiver.h"
-#ifdef TIZEN_GATT_CLIENT
 #include "bt-service-gatt.h"
-#endif
 #include "bt-service-headset-connection.h"
 #include "bt-service-main.h"
 #ifdef TIZEN_MDM_ENABLE
@@ -159,7 +157,6 @@ typedef enum {
 
 static int dbfw_rssi;
 
-#ifdef TIZEN_GATT_CLIENT
 typedef struct {
        char *address;
        float interval_min;
@@ -187,7 +184,6 @@ static GSList *le_connected_dev_list = NULL;
 #define BT_LE_CONN_INTERVAL_SPLIT 1.25 /* msec */
 
 static void _bt_handle_le_connected_dev_info(const char *address, gboolean connected);
-#endif
 
 /* Forward declaration */
 static void __bt_device_event_handler(int event_type, gpointer event_data);
@@ -1511,12 +1507,9 @@ static void __bt_device_acl_state_changed_callback(event_dev_conn_status_t *acl_
        /* Update local cache */
        _bt_update_remote_dev_property(address, DEV_PROP_CONNECTED, (void *)&conn_info);
 
-#ifdef TIZEN_GATT_CLIENT
        /*handle LE connected device info*/
        if (type)
                _bt_handle_le_connected_dev_info(address, connected);
-#endif
-
 }
 
 static void __bt_device_remote_device_found_callback(gpointer event_data, gboolean is_ble)
@@ -2091,10 +2084,8 @@ gboolean _bt_is_device_connected(bluetooth_device_address_t *device_address, int
        case BT_PROFILE_CONN_HFG:
                svc_id = HFP_SERVICE_ID; /* Remote is HFP AG Unit */
                break;
-#ifdef TIZEN_GATT_CLIENT
        case BT_PROFILE_CONN_GATT:
                return _bt_is_remote_gatt_device_connected(device_address); /* Remote is GATT client or Server */
-#endif
        default:
                BT_DBG("Unknown svc_type: %d", svc_type);
                return FALSE;
@@ -2299,7 +2290,6 @@ int _bt_device_get_ida(bluetooth_device_address_t *device_address, bluetooth_dev
        return result;
 }
 
-#ifdef TIZEN_GATT_CLIENT
 static bt_connected_le_dev_t *__bt_get_le_connected_dev_info(const char *address)
 {
        GSList *l = NULL;
@@ -2716,4 +2706,3 @@ static gboolean __bt_ignore_auto_pairing_request(const char *address)
 
        return FALSE;
 }
-#endif