From c36db90f1a4a916d4e7440a6bbb6b04f88ebe1e1 Mon Sep 17 00:00:00 2001 From: Chris Manton Date: Wed, 10 Feb 2021 22:32:05 -0800 Subject: [PATCH] Remove unneccesary API BTM_GetAcceptlistSize Towards meaningful code Bug: 163134718 Tag: #refactor Test: gd/cert/run Change-Id: I4df37acc3f7bfd210e48d0a892624fbffeb19bbf --- stack/btm/btm_ble_bgconn.cc | 8 -------- stack/btm/btm_ble_bgconn.h | 3 --- 2 files changed, 11 deletions(-) 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(); -- 2.11.0