OSDN Git Service

Remove unreachable BT(A|M)_VendorCleanup functions
authorZach Johnson <zachoverflow@google.com>
Thu, 13 Aug 2020 21:48:54 +0000 (14:48 -0700)
committerZach Johnson <zachoverflow@google.com>
Thu, 13 Aug 2020 21:48:54 +0000 (14:48 -0700)
Bug: 159815595
Tag: #refactor
Test: compile & verify basic functions working
Change-Id: I73ef9a97d2816f1f550a5bca9a2a0109059b75f2

bta/dm/bta_dm_api.cc
bta/include/bta_api.h
stack/btm/btm_devctl.cc
stack/include/btm_api.h

index 82f05ec..bb2f52d 100644 (file)
@@ -718,15 +718,3 @@ extern void BTA_DmBleObserve(bool start, uint8_t duration,
  *
  ******************************************************************************/
 void BTA_VendorInit(void) { APPL_TRACE_API("BTA_VendorInit"); }
-
-/*******************************************************************************
- *
- * Function         BTA_VendorCleanup
- *
- * Description      This function frees up Broadcom specific VS specific dynamic
- *                  memory
- *
- * Returns          void
- *
- ******************************************************************************/
-void BTA_VendorCleanup(void) { BTM_VendorCleanup(); }
index 857e051..138d031 100644 (file)
@@ -1451,16 +1451,4 @@ extern void BTA_DmBleGetEnergyInfo(tBTA_BLE_ENERGY_INFO_CBACK* p_cmpl_cback);
  ******************************************************************************/
 extern void BTA_VendorInit(void);
 
-/*******************************************************************************
- *
- * Function         BTA_BrcmCleanup
- *
- * Description      This function frees up Broadcom specific VS specific dynamic
- *                  memory
- *
- * Returns          void
- *
- ******************************************************************************/
-extern void BTA_VendorCleanup(void);
-
 #endif /* BTA_API_H */
index 40e9364..d89fa9a 100644 (file)
@@ -767,19 +767,3 @@ tBTM_STATUS BTM_BT_Quality_Report_VSE_Register(
             << " is_register: " << logbool(is_register);
   return retval;
 }
-
-void BTM_VendorCleanup() {
-  tBTM_BLE_VSC_CB cmn_ble_vsc_cb;
-  BTM_BleGetVendorCapabilities(&cmn_ble_vsc_cb);
-
-  if (cmn_ble_vsc_cb.max_filter > 0) {
-    btm_ble_adv_filter_cleanup();
-#if (BLE_PRIVACY_SPT == TRUE)
-    btm_ble_resolving_list_cleanup();
-#endif
-  }
-
-  if (cmn_ble_vsc_cb.tot_scan_results_strg > 0) btm_ble_batchscan_cleanup();
-
-  if (cmn_ble_vsc_cb.adv_inst_max > 0) btm_ble_multi_adv_cleanup();
-}
index 9c840a0..bc24700 100644 (file)
@@ -1341,8 +1341,6 @@ uint16_t BTM_GetMaxPacketSize(const RawAddress& addr);
 extern tBTM_STATUS BTM_BT_Quality_Report_VSE_Register(
     bool is_register, tBTM_BT_QUALITY_REPORT_RECEIVER* p_bqr_report_receiver);
 
-extern void BTM_VendorCleanup();
-
 extern tBTM_STATUS btm_sec_mx_access_request(const RawAddress& bd_addr,
                                              uint16_t psm, bool is_originator,
                                              uint32_t mx_proto_id,