Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b06d3dca authored by Zach Johnson's avatar Zach Johnson
Browse files

Remove unreachable BT(A|M)_VendorCleanup functions

Bug: 159815595
Tag: #refactor
Test: compile & verify basic functions working
Change-Id: I73ef9a97d2816f1f550a5bca9a2a0109059b75f2
parent dcbac97b
Loading
Loading
Loading
Loading
+0 −12
Original line number Diff line number Diff line
@@ -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(); }
+0 −12
Original line number Diff line number Diff line
@@ -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 */
+0 −16
Original line number Diff line number Diff line
@@ -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();
}
+0 −2
Original line number Diff line number Diff line
@@ -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,