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

Commit 1d68687e authored by Chris Manton's avatar Chris Manton
Browse files

Remove unused stack::btm::btm_ble_suspend_bg_conn

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

Change-Id: I5f9317ef0903935984a0f0736444f61ff8a4d5c3
parent 3156a97e
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_suspend_bg_conn
 *
 * Description      This function is to suspend an active background connection
 *                  procedure.
 *
 * Parameters       none.
 *
 * Returns          none.
 *
 ******************************************************************************/
bool btm_ble_suspend_bg_conn(void) {
    LOG_DEBUG("Gd acl_manager handles sync of background connections");
    return true;
}

/*******************************************************************************
 *
 * Function         btm_ble_resume_bg_conn
+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_suspend_bg_conn(void);
bool btm_ble_resume_bg_conn(void);
void btm_ble_update_mode_operation(uint8_t link_role, const RawAddress* bda,
                                   tHCI_STATUS status);
+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_suspend_bg_conn btm_ble_suspend_bg_conn;
struct btm_ble_resume_bg_conn btm_ble_resume_bg_conn;
struct BTM_SetLeConnectionModeToFast BTM_SetLeConnectionModeToFast;
struct BTM_SetLeConnectionModeToSlow BTM_SetLeConnectionModeToSlow;
@@ -55,10 +54,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_suspend_bg_conn(void) {
  inc_func_call_count(__func__);
  return test::mock::stack_btm_ble_bgconn::btm_ble_suspend_bg_conn();
}
bool btm_ble_resume_bg_conn(void) {
  inc_func_call_count(__func__);
  return test::mock::stack_btm_ble_bgconn::btm_ble_resume_bg_conn();
+0 −8
Original line number Diff line number Diff line
@@ -43,14 +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_suspend_bg_conn
// Params: void
// Returns: bool
struct btm_ble_suspend_bg_conn {
  std::function<bool(void)> body{[](void) { return false; }};
  bool operator()(void) { return body(); };
};
extern struct btm_ble_suspend_bg_conn btm_ble_suspend_bg_conn;
// Name: btm_ble_resume_bg_conn
// Params: void
// Returns: bool