OSDN Git Service

Remove unneeded func stack/btm/btm_ble_bgconn::btm_ble_acceptlist_init
authorChris Manton <cmanton@google.com>
Thu, 11 Feb 2021 06:33:40 +0000 (22:33 -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: Ib4e759a47e947de205f680d31b25c8bb10a1f252

stack/btm/btm_ble_bgconn.cc
stack/btm/btm_ble_int.h
stack/btm/btm_devctl.cc

index 4304a02..dede216 100644 (file)
@@ -447,17 +447,6 @@ void btm_ble_bgconn_cancel_if_disconnected(const RawAddress& bd_addr) {
 
 /*******************************************************************************
  *
- * Function         btm_ble_acceptlist_init
- *
- * Description      Initialize acceptlist size
- *
- ******************************************************************************/
-void btm_ble_acceptlist_init(uint8_t acceptlist_size) {
-  BTM_TRACE_DEBUG("%s acceptlist_size = %d", __func__, acceptlist_size);
-}
-
-/*******************************************************************************
- *
  * Function         btm_ble_suspend_bg_conn
  *
  * Description      This function is to suspend an active background connection
index f015baf..aec86ca 100644 (file)
@@ -91,7 +91,6 @@ extern uint8_t btm_ble_read_sec_key_size(const RawAddress& bd_addr);
 
 /* acceptlist function */
 extern void btm_update_scanner_filter_policy(tBTM_BLE_SFP scan_policy);
-extern void btm_ble_acceptlist_init(uint8_t acceptlist_size);
 
 /* background connection function */
 extern bool btm_ble_suspend_bg_conn(void);
index 94a9189..1eaea12 100644 (file)
@@ -204,7 +204,6 @@ void BTM_reset_complete() {
   }
 
   if (controller->supports_ble()) {
-    btm_ble_acceptlist_init(controller->get_ble_acceptlist_size());
     l2c_link_processs_ble_num_bufs(controller->get_acl_buffer_count_ble());
   }