Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 470b5baf authored by Chris Manton's avatar Chris Manton
Browse files

Remove unused main::shim::btm

Bug: 340002301
Test: m .
Flag: EXEMPT, Code Removal

Change-Id: I63997b13579a470e42d61cad2584ea19be398d2e
parent cdd45734
Loading
Loading
Loading
Loading
+0 −895

File changed.

Preview size limit exceeded, changes collapsed.

+0 −142
Original line number Diff line number Diff line
@@ -28,148 +28,6 @@
#include "types/bt_transport.h"
#include "types/raw_address.h"

Octet16 octet16;

bool bluetooth::shim::BTM_HasEirService(const uint32_t* /* p_eir_uuid */,
                                        uint16_t /* uuid16 */) {
  inc_func_call_count(__func__);
  return false;
}
bool bluetooth::shim::BTM_ReadConnectedTransportAddress(
    RawAddress* /* remote_bda */, tBT_TRANSPORT /* transport */) {
  inc_func_call_count(__func__);
  return false;
}
bool bluetooth::shim::BTM_ReadRemoteConnectionAddr(
    const RawAddress& /* pseudo_addr */, RawAddress& /* conn_addr */,
    tBLE_ADDR_TYPE* /* p_addr_type */, bool /* ota_address */) {
  inc_func_call_count(__func__);
  return false;
}

tBTM_INQ_INFO* bluetooth::shim::BTM_InqDbFirst(void) {
  inc_func_call_count(__func__);
  return nullptr;
}
tBTM_INQ_INFO* bluetooth::shim::BTM_InqDbNext(tBTM_INQ_INFO* /* p_cur */) {
  inc_func_call_count(__func__);
  return nullptr;
}
tBTM_INQ_INFO* bluetooth::shim::BTM_InqDbRead(const RawAddress& /* p_bda */) {
  inc_func_call_count(__func__);
  return nullptr;
}
tBTM_STATUS bluetooth::shim::BTM_BleObserve(
    bool /* start */, uint8_t /* duration_sec */,
    tBTM_INQ_RESULTS_CB* /* p_results_cb */, tBTM_CMPL_CB* /* p_cmpl_cb */) {
  inc_func_call_count(__func__);
  return BTM_SUCCESS;
}
void bluetooth::shim::BTM_BleOpportunisticObserve(
    bool /* enable */, tBTM_INQ_RESULTS_CB* /* p_results_cb */) {
  inc_func_call_count(__func__);
}
void bluetooth::shim::BTM_BleTargetAnnouncementObserve(
    bool /* enable */, tBTM_INQ_RESULTS_CB* /* p_results_cb */) {
  inc_func_call_count(__func__);
}
tBTM_STATUS bluetooth::shim::BTM_CancelRemoteDeviceName(void) {
  inc_func_call_count(__func__);
  return BTM_SUCCESS;
}
tBTM_STATUS bluetooth::shim::BTM_ClearInqDb(const RawAddress* /* p_bda */) {
  inc_func_call_count(__func__);
  return BTM_SUCCESS;
}
tBTM_STATUS bluetooth::shim::BTM_ReadRemoteDeviceName(
    const RawAddress& /* raw_address */, tBTM_NAME_CMPL_CB* /* callback */,
    tBT_TRANSPORT /* transport */) {
  inc_func_call_count(__func__);
  return BTM_SUCCESS;
}

tBTM_STATUS bluetooth::shim::BTM_SetConnectability(uint16_t /* page_mode */,
                                                   uint16_t /* window */,
                                                   uint16_t /* interval */) {
  inc_func_call_count(__func__);
  return BTM_SUCCESS;
}
tBTM_STATUS bluetooth::shim::BTM_SetDeviceClass(DEV_CLASS /* dev_class */) {
  inc_func_call_count(__func__);
  return BTM_SUCCESS;
}
tBTM_STATUS bluetooth::shim::BTM_SetDiscoverability(
    uint16_t /* discoverable_mode */, uint16_t /* window */,
    uint16_t /* interval */) {
  inc_func_call_count(__func__);
  return BTM_SUCCESS;
}

tBTM_STATUS bluetooth::shim::BTM_SetInquiryMode(uint8_t /* inquiry_mode */) {
  inc_func_call_count(__func__);
  return BTM_SUCCESS;
}
void bluetooth::shim::BTM_AddEirService(uint32_t* /* p_eir_uuid */,
                                        uint16_t /* uuid16 */) {
  inc_func_call_count(__func__);
}
void bluetooth::shim::BTM_BleAdvFilterParamSetup(
    tBTM_BLE_SCAN_COND_OP /* action */, tBTM_BLE_PF_FILT_INDEX /* filt_index */,
    std::unique_ptr<btgatt_filt_param_setup_t> /* p_filt_params */,
    tBTM_BLE_PF_PARAM_CB /* cb */) {
  inc_func_call_count(__func__);
}

void bluetooth::shim::BTM_BleSetConnScanParams(uint32_t /* scan_interval */,
                                               uint32_t /* scan_window */) {
  inc_func_call_count(__func__);
}

void bluetooth::shim::BTM_BleSetPrefConnParams(
    const RawAddress& /* bd_addr */, uint16_t /* min_conn_int */,
    uint16_t /* max_conn_int */, uint16_t /* peripheral_latency */,
    uint16_t /* supervision_tout */) {
  inc_func_call_count(__func__);
}

void bluetooth::shim::BTM_EnableInterlacedInquiryScan() {
  inc_func_call_count(__func__);
}
void bluetooth::shim::BTM_EnableInterlacedPageScan() {
  inc_func_call_count(__func__);
}

void bluetooth::shim::BTM_ReadConnectionAddr(const RawAddress& /* remote_bda */,
                                             RawAddress& /* local_conn_addr */,
                                             tBLE_ADDR_TYPE* /* p_addr_type */,
                                             bool /* ota_address */) {
  inc_func_call_count(__func__);
}

void bluetooth::shim::SendRemoteNameRequest(
    const RawAddress& /* raw_address */) {
  inc_func_call_count(__func__);
}
void btm_api_process_extended_inquiry_result(
    RawAddress /* raw_address */, uint8_t /* page_scan_rep_mode */,
    DEV_CLASS /* device_class */, uint16_t /* clock_offset */,
    int8_t /* rssi */, const uint8_t* /* eir_data */, size_t /* eir_len */) {
  inc_func_call_count(__func__);
}
void btm_api_process_inquiry_result(const RawAddress& /* raw_address */,
                                    uint8_t /* page_scan_rep_mode */,
                                    DEV_CLASS /* device_class */,
                                    uint16_t /* clock_offset */) {
  inc_func_call_count(__func__);
}
void btm_api_process_inquiry_result_with_rssi(RawAddress /* raw_address */,
                                              uint8_t /* page_scan_rep_mode */,
                                              DEV_CLASS /* device_class */,
                                              uint16_t /* clock_offset */,
                                              int8_t /* rssi */) {
  inc_func_call_count(__func__);
}

tBTM_STATUS bluetooth::shim::BTM_ClearEventFilter() {
  inc_func_call_count(__func__);
  return BTM_SUCCESS;