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

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

Remove unused AVDT api function

Bug: 159815595
Test: cert/run --host
Tag: #gd-refactor
Change-Id: Iee6dcc7e610157e278d5519d41223e2e03cd8a2a
parent 8d466e5f
Loading
Loading
Loading
Loading
+0 −30
Original line number Diff line number Diff line
@@ -1095,36 +1095,6 @@ uint16_t AVDT_GetL2CapChannel(uint8_t handle) {
  return (lcid);
}

/*******************************************************************************
 *
 * Function         AVDT_GetSignalChannel
 *
 * Description      Get the L2CAP CID used by the signal channel of the given
 *                  handle.
 *
 * Returns          CID if successful, otherwise 0.
 *
 ******************************************************************************/
uint16_t AVDT_GetSignalChannel(uint8_t handle, const RawAddress& bd_addr) {
  AvdtpScb* p_scb;
  AvdtpCcb* p_ccb;
  uint8_t tcid = 0; /* tcid is always 0 for signal channel */
  uint16_t lcid = 0;

  /* map handle to scb */
  if (((p_scb = avdt_scb_by_hdl(handle)) != NULL) &&
      ((p_ccb = p_scb->p_ccb) != NULL)) {
    lcid = avdtp_cb.ad.rt_tbl[avdt_ccb_to_idx(p_ccb)][tcid].lcid;
  } else {
    p_ccb = avdt_ccb_by_bd(bd_addr);
    if (p_ccb != NULL) {
      lcid = avdtp_cb.ad.rt_tbl[avdt_ccb_to_idx(p_ccb)][tcid].lcid;
    }
  }

  return (lcid);
}

/*******************************************************************************
 *
 * Function         AVDT_SendReport
+0 −13
Original line number Diff line number Diff line
@@ -929,19 +929,6 @@ extern uint16_t AVDT_DisconnectReq(const RawAddress& bd_addr,
 ******************************************************************************/
extern uint16_t AVDT_GetL2CapChannel(uint8_t handle);

/*******************************************************************************
 *
 * Function         AVDT_GetSignalChannel
 *
 * Description      Get the L2CAP CID used by the signal channel of the given
 *                  handle.
 *
 * Returns          CID if successful, otherwise 0.
 *
 ******************************************************************************/
extern uint16_t AVDT_GetSignalChannel(uint8_t handle,
                                      const RawAddress& bd_addr);

/*******************************************************************************
 *
 * Function         AVDT_SendReport