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

Commit 88d714b9 authored by Henri Chataing's avatar Henri Chataing
Browse files

system/bta: Remove no-op method bta_ar_avdt_conn

Bug: 331817295
Test: m com.android.btservices
Flag: EXEMPT, dead code removal
Change-Id: Ifb1081e83a2e468a25e1d2c7a75717a19070c126
parent ffe765cf
Loading
Loading
Loading
Loading
+0 −15
Original line number Diff line number Diff line
@@ -148,21 +148,6 @@ void bta_ar_dereg_avdt() {
  }
}

/*******************************************************************************
 *
 * Function         bta_ar_avdt_conn
 *
 * Description      This function is called to let ar know that some AVDTP
 *                  profile is connected for this sys_id.
 *                  If the other sys modules started a timer for PENDING_EVT,
 *                  the timer can be stopped now.
 *
 * Returns          void
 *
 ******************************************************************************/
void bta_ar_avdt_conn(tBTA_SYS_ID /*sys_id*/, const RawAddress& /*bd_addr*/,
                      uint8_t /*scb_index*/) {}

/*******************************************************************************
 *
 * Function         bta_ar_reg_avct
+0 −1
Original line number Diff line number Diff line
@@ -1227,7 +1227,6 @@ void bta_av_str_opened(tBTA_AV_SCB* p_scb, tBTA_AV_DATA* p_data) {
        }
      }
    }
    bta_ar_avdt_conn(BTA_ID_AV, open.bd_addr, p_scb->hdi);
    if (p_scb->seps[p_scb->sep_idx].tsep == AVDT_TSEP_SRC) {
      open.starting = false;
      open.sep = AVDT_TSEP_SNK;
+0 −14
Original line number Diff line number Diff line
@@ -72,20 +72,6 @@ void bta_ar_reg_avdt(AvdtpRcb* p_reg, tAVDT_CTRL_CBACK* p_cback);
 ******************************************************************************/
void bta_ar_dereg_avdt();

/*******************************************************************************
 *
 * Function         bta_ar_avdt_conn
 *
 * Description      This function is called to let ar know that some AVDTP
 *                  profile is connected for this sys_id.
 *                  If the other sys modules started a timer for PENDING_EVT,
 *                  the timer can be stopped now.
 *
 * Returns          void
 *
 ******************************************************************************/
void bta_ar_avdt_conn(tBTA_SYS_ID sys_id, const RawAddress& bd_addr, uint8_t scb_index);

/*******************************************************************************
 *
 * Function         bta_ar_reg_avct
+0 −4
Original line number Diff line number Diff line
@@ -29,10 +29,6 @@
// TODO(b/369381361) Enfore -Wmissing-prototypes
#pragma GCC diagnostic ignored "-Wmissing-prototypes"

void bta_ar_avdt_conn(tBTA_SYS_ID /* sys_id */, const RawAddress& /* bd_addr */,
                      uint8_t /* scb_index */) {
  inc_func_call_count(__func__);
}
void bta_ar_dereg_avct() { inc_func_call_count(__func__); }
void bta_ar_dereg_avdt() { inc_func_call_count(__func__); }
void bta_ar_dereg_avrc(uint16_t /* service_uuid */) { inc_func_call_count(__func__); }