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

Commit 7f67f528 authored by Henri Chataing's avatar Henri Chataing
Browse files

Remove unused function btm_is_sco_active

Bug: 331817295
Test: m com.android.btservices
Flag: EXEMPT, dead code removal
Change-Id: If551b1fef8531f88c43b3cc9d2088a93b125432c
parent 1bfe15ff
Loading
Loading
Loading
Loading
+0 −20
Original line number Diff line number Diff line
@@ -1551,26 +1551,6 @@ void BTM_EScoConnRsp(uint16_t sco_inx, uint8_t hci_status,
  }
}

/*******************************************************************************
 *
 * Function         btm_is_sco_active
 *
 * Description      This function is called to see if a SCO handle is already in
 *                  use.
 *
 * Returns          bool
 *
 ******************************************************************************/
bool btm_is_sco_active(uint16_t handle) {
  uint16_t xx;
  tSCO_CONN* p = &btm_cb.sco_cb.sco_db[0];

  for (xx = 0; xx < BTM_MAX_SCO_LINKS; xx++, p++) {
    if (handle == p->hci_handle && p->state == SCO_ST_CONNECTED) return (true);
  }
  return (false);
}

/*******************************************************************************
 *
 * Function         BTM_GetNumScoLinks
+0 −1
Original line number Diff line number Diff line
@@ -26,7 +26,6 @@

struct tBTM_ESCO_DATA;

bool btm_is_sco_active(uint16_t handle);
void btm_sco_chk_pend_unpark(tHCI_STATUS hci_status, uint16_t hci_handle);
void btm_sco_conn_req(const RawAddress& bda, const DEV_CLASS& dev_class,
                      uint8_t link_type);
+0 −4
Original line number Diff line number Diff line
@@ -34,10 +34,6 @@ bool BTM_IsScoActiveByBdaddr(const RawAddress& /* remote_bda */) {
  inc_func_call_count(__func__);
  return false;
}
bool btm_is_sco_active(uint16_t /* handle */) {
  inc_func_call_count(__func__);
  return false;
}
bool btm_sco_removed(uint16_t /* hci_handle */, tHCI_REASON /* reason */) {
  inc_func_call_count(__func__);
  return false;