OSDN Git Service

Remove unneccesary API BTM_GetAcceptlistSize
authorChris Manton <cmanton@google.com>
Thu, 11 Feb 2021 06:32:05 +0000 (22:32 -0800)
committerChris Manton <cmanton@google.com>
Tue, 16 Feb 2021 16:34:25 +0000 (08:34 -0800)
Towards meaningful code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run

Change-Id: I4df37acc3f7bfd210e48d0a892624fbffeb19bbf

stack/btm/btm_ble_bgconn.cc
stack/btm/btm_ble_bgconn.h

index f57400f..4304a02 100644 (file)
@@ -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;
index 5d05ad2..cb0ac94 100644 (file)
@@ -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();