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

Commit 76448642 authored by Chris Manton's avatar Chris Manton
Browse files

Remove unused stack::btm::btm_ble_resume_bg_conn

Bug: 319280711
Test: m .
Flag: EXEMPT, Unused function

Change-Id: I76dbf73ae7449439787a20ab303d58b334724145
parent 1d68687e
Loading
Loading
Loading
Loading
+0 −17
Original line number Diff line number Diff line
@@ -91,23 +91,6 @@ void btm_update_scanner_filter_policy(tBTM_BLE_SFP scan_policy) {
                               scan_policy);
}

/*******************************************************************************
 *
 * Function         btm_ble_resume_bg_conn
 *
 * Description      This function is to resume a background auto connection
 *                  procedure.
 *
 * Parameters       none.
 *
 * Returns          none.
 *
 ******************************************************************************/
bool btm_ble_resume_bg_conn(void) {
    LOG_DEBUG("Gd acl_manager handles sync of background connections");
    return true;
}

/** Adds the device into acceptlist. Returns false if acceptlist is full and
 * device can't be added, true otherwise. */
bool BTM_AcceptlistAdd(const RawAddress& address) {
+0 −1
Original line number Diff line number Diff line
@@ -48,7 +48,6 @@ void btm_ble_connected(const RawAddress& bda, uint16_t handle, uint8_t enc_mode,
void btm_update_scanner_filter_policy(tBTM_BLE_SFP scan_policy);

/* background connection function */
bool btm_ble_resume_bg_conn(void);
void btm_ble_update_mode_operation(uint8_t link_role, const RawAddress* bda,
                                   tHCI_STATUS status);
/* BLE address management */
+0 −5
Original line number Diff line number Diff line
@@ -37,7 +37,6 @@ namespace stack_btm_ble_bgconn {

// Function state capture and return values, if needed
struct btm_update_scanner_filter_policy btm_update_scanner_filter_policy;
struct btm_ble_resume_bg_conn btm_ble_resume_bg_conn;
struct BTM_SetLeConnectionModeToFast BTM_SetLeConnectionModeToFast;
struct BTM_SetLeConnectionModeToSlow BTM_SetLeConnectionModeToSlow;
struct BTM_AcceptlistAdd BTM_AcceptlistAdd;
@@ -54,10 +53,6 @@ void btm_update_scanner_filter_policy(tBTM_BLE_SFP scan_policy) {
  test::mock::stack_btm_ble_bgconn::btm_update_scanner_filter_policy(
      scan_policy);
}
bool btm_ble_resume_bg_conn(void) {
  inc_func_call_count(__func__);
  return test::mock::stack_btm_ble_bgconn::btm_ble_resume_bg_conn();
}
bool BTM_SetLeConnectionModeToFast() {
  inc_func_call_count(__func__);
  return test::mock::stack_btm_ble_bgconn::BTM_SetLeConnectionModeToFast();
+0 −9
Original line number Diff line number Diff line
@@ -43,15 +43,6 @@ struct btm_update_scanner_filter_policy {
  void operator()(tBTM_BLE_SFP scan_policy) { body(scan_policy); };
};
extern struct btm_update_scanner_filter_policy btm_update_scanner_filter_policy;
// Name: btm_ble_resume_bg_conn
// Params: void
// Returns: bool
struct btm_ble_resume_bg_conn {
  std::function<bool(void)> body{[](void) { return false; }};
  bool operator()(void) { return body(); };
};
extern struct btm_ble_resume_bg_conn btm_ble_resume_bg_conn;

// Name: BTM_SetLeConnectionModeToFast
// Params:
// Returns: bool