From: Chris Manton Date: Thu, 11 Feb 2021 06:32:05 +0000 (-0800) Subject: Remove unneccesary API BTM_GetAcceptlistSize X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=c36db90f1a4a916d4e7440a6bbb6b04f88ebe1e1;p=android-x86%2Fsystem-bt.git Remove unneccesary API BTM_GetAcceptlistSize Towards meaningful code Bug: 163134718 Tag: #refactor Test: gd/cert/run Change-Id: I4df37acc3f7bfd210e48d0a892624fbffeb19bbf --- diff --git a/stack/btm/btm_ble_bgconn.cc b/stack/btm/btm_ble_bgconn.cc index f57400f51..4304a02d8 100644 --- a/stack/btm/btm_ble_bgconn.cc +++ b/stack/btm/btm_ble_bgconn.cc @@ -519,14 +519,6 @@ bool BTM_BackgroundConnectAddressKnown(const RawAddress& address) { return false; } -uint8_t BTM_GetAcceptlistSize() { - const controller_t* controller = controller_get_interface(); - if (!controller->supports_ble()) { - return 0; - } - return controller->get_ble_acceptlist_size(); -} - bool BTM_SetLeConnectionModeToFast() { VLOG(2) << __func__; tBTM_BLE_CB* p_cb = &btm_cb.ble_ctr_cb; diff --git a/stack/btm/btm_ble_bgconn.h b/stack/btm/btm_ble_bgconn.h index 5d05ad2e7..cb0ac9469 100644 --- a/stack/btm/btm_ble_bgconn.h +++ b/stack/btm/btm_ble_bgconn.h @@ -25,9 +25,6 @@ extern bool BTM_AcceptlistAdd(const RawAddress& address); /** Removes the device from acceptlist */ extern void BTM_AcceptlistRemove(const RawAddress& address); -/** Get max acceptlist size supports of the Bluetooth controller */ -extern uint8_t BTM_GetAcceptlistSize(); - /** Clear the acceptlist, end any pending acceptlist connections */ extern void BTM_AcceptlistClear();