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

Commit bb41a47d authored by Marie Janssen's avatar Marie Janssen
Browse files

stack: remove dead (#if 0'd) code

Test: compiles
Change-Id: I34f68c2b166a28622155358ff75478af8d18bed0
parent db6f202f
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -1986,11 +1986,6 @@ void avdt_scb_chk_snd_pkt(tAVDT_SCB *p_scb, tAVDT_SCB_EVT *p_data)
#if (AVDT_MULTIPLEXING == TRUE)
        else
        {
#if 0
            AVDT_TRACE_DEBUG("num_q=%d",
                L2CA_FlushChannel(avdt_cb.ad.rt_tbl[avdt_ccb_to_idx(p_scb->p_ccb)][avdt_ad_type_to_tcid(AVDT_CHAN_MEDIA, p_scb)].lcid),
                                  L2CAP_FLUSH_CHANS_GET);
#endif
            while ((p_pkt = (BT_HDR*)fixed_queue_try_dequeue(p_scb->frag_q)) != NULL)
            {
                sent = true;
+0 −7
Original line number Diff line number Diff line
@@ -70,13 +70,6 @@ static void btm_process_remote_ext_features (tACL_CONN *p_acl_cb, uint8_t num_re
void btm_acl_init (void)
{
    BTM_TRACE_DEBUG ("btm_acl_init");
#if 0  /* cleared in btm_init; put back in if called from anywhere else! */
    memset (&btm_cb.acl_db, 0, sizeof (btm_cb.acl_db));
    memset (btm_cb.btm_scn, 0, BTM_MAX_SCN);          /* Initialize the SCN usage to false */
    btm_cb.btm_def_link_policy     = 0;
    btm_cb.p_bl_changed_cb         = NULL;
#endif

    /* Initialize nonzero defaults */
    btm_cb.btm_def_link_super_tout = HCI_DEFAULT_INACT_TOUT;
    btm_cb.acl_disc_reason         = 0xff ;
+0 −4
Original line number Diff line number Diff line
@@ -77,10 +77,6 @@ static void btm_decode_ext_features_page (uint8_t page_number, const BD_FEATURES
*******************************************************************************/
void btm_dev_init (void)
{
#if 0  /* cleared in btm_init; put back in if called from anywhere else! */
    memset (&btm_cb.devcb, 0, sizeof (tBTM_DEVCB));
#endif

    /* Initialize nonzero defaults */
    memset(btm_cb.cfg.bd_name, 0, sizeof(tBTM_LOC_BD_NAME));

+0 −3
Original line number Diff line number Diff line
@@ -1344,9 +1344,6 @@ void btm_inq_db_reset (void)
*******************************************************************************/
void btm_inq_db_init (void)
{
#if 0  /* cleared in btm_init; put back in if called from anywhere else! */
    memset (&btm_cb.btm_inq_vars, 0, sizeof (tBTM_INQUIRY_VAR_ST));
#endif
    alarm_free(btm_cb.btm_inq_vars.remote_name_timer);
    btm_cb.btm_inq_vars.remote_name_timer =
        alarm_new("btm_inq.remote_name_timer");
+0 −4
Original line number Diff line number Diff line
@@ -113,10 +113,6 @@ void btm_sco_flush_sco_data(uint16_t sco_inx)
*******************************************************************************/
void btm_sco_init (void)
{
#if 0  /* cleared in btm_init; put back in if called from anywhere else! */
    memset (&btm_cb.sco_cb, 0, sizeof(tSCO_CB));
#endif

#if (BTM_SCO_HCI_INCLUDED == TRUE)
    for (int i = 0; i < BTM_MAX_SCO_LINKS; i++)
        btm_cb.sco_cb.sco_db[i].xmit_data_q = fixed_queue_new(SIZE_MAX);
Loading