From 78a28a441db3aacfe4c4bdf052ad70e235740bfc Mon Sep 17 00:00:00 2001 From: Hansong Zhang Date: Mon, 14 Sep 2020 13:00:51 -0700 Subject: [PATCH] bnep_disconnect_cfm does nothing Bug: 159815595 Tag: #refactor Test: compile & verify basic functions working Change-Id: Ibd034d08df8b34d3b97b0a39ae0bb10cf0e4ac51 --- stack/bnep/bnep_main.cc | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/stack/bnep/bnep_main.cc b/stack/bnep/bnep_main.cc index f6fa97187..fbfa8ad33 100644 --- a/stack/bnep/bnep_main.cc +++ b/stack/bnep/bnep_main.cc @@ -63,7 +63,6 @@ static void bnep_connect_cfm(uint16_t l2cap_cid, uint16_t result); static void bnep_config_ind(uint16_t l2cap_cid, tL2CAP_CFG_INFO* p_cfg); static void bnep_config_cfm(uint16_t l2cap_cid, tL2CAP_CFG_INFO* p_cfg); static void bnep_disconnect_ind(uint16_t l2cap_cid, bool ack_needed); -static void bnep_disconnect_cfm(uint16_t l2cap_cid, uint16_t result); static void bnep_data_ind(uint16_t l2cap_cid, BT_HDR* p_msg); static void bnep_congestion_ind(uint16_t lcid, bool is_congested); @@ -90,7 +89,6 @@ tBNEP_RESULT bnep_register_with_l2cap(void) { bnep_cb.reg_info.pL2CA_ConfigInd_Cb = bnep_config_ind; bnep_cb.reg_info.pL2CA_ConfigCfm_Cb = bnep_config_cfm; bnep_cb.reg_info.pL2CA_DisconnectInd_Cb = bnep_disconnect_ind; - bnep_cb.reg_info.pL2CA_DisconnectCfm_Cb = bnep_disconnect_cfm; bnep_cb.reg_info.pL2CA_DataInd_Cb = bnep_data_ind; bnep_cb.reg_info.pL2CA_CongestionStatus_Cb = bnep_congestion_ind; @@ -359,20 +357,6 @@ static void bnep_disconnect_ind(uint16_t l2cap_cid, bool ack_needed) { /******************************************************************************* * - * Function bnep_disconnect_cfm - * - * Description This function gets the disconnect confirm event from L2CAP - * - * Returns void - * - ******************************************************************************/ -static void bnep_disconnect_cfm(uint16_t l2cap_cid, uint16_t result) { - BNEP_TRACE_EVENT("BNEP - Rcvd L2CAP disc cfm, CID: 0x%x, Result 0x%x", - l2cap_cid, result); -} - -/******************************************************************************* - * * Function bnep_congestion_ind * * Description This is a callback function called by L2CAP when -- 2.11.0