From 3fd840f42176a8cb8ea8c83f75c9b619b4e3a22b Mon Sep 17 00:00:00 2001 From: Hansong Zhang Date: Fri, 25 Sep 2020 16:16:48 -0700 Subject: [PATCH] Remove unused code in l2c_api Bug: 159815595 Tag: #refactor Test: compile & verify basic functions working Change-Id: Ifdcb0a14919e75103796246cddb9011393e0035a --- stack/include/l2c_api.h | 10 ---------- stack/l2cap/l2c_int.h | 2 -- 2 files changed, 12 deletions(-) diff --git a/stack/include/l2c_api.h b/stack/include/l2c_api.h index 2757feeae..c04b72ddd 100644 --- a/stack/include/l2c_api.h +++ b/stack/include/l2c_api.h @@ -209,18 +209,8 @@ typedef void(tL2CA_DISCONNECT_IND_CB)(uint16_t, bool); * Local CID * Result */ -typedef void(tL2CA_DISCONNECT_CFM_CB)(uint16_t, uint16_t); - -/* Data received indication callback prototype. Parameters are - * Local CID - * Address of buffer - */ typedef void(tL2CA_DATA_IND_CB)(uint16_t, BT_HDR*); -/* Callback function prototype to pass broadcom specific echo response */ -/* to the upper layer */ -typedef void(tL2CA_ECHO_DATA_CB)(const RawAddress&, uint16_t, uint8_t*); - /* Congestion status callback protype. This callback is optional. If * an application tries to send data when the transmit queue is full, * the data will anyways be dropped. The parameter is: diff --git a/stack/l2cap/l2c_int.h b/stack/l2cap/l2c_int.h index 746b109b4..310f31e66 100644 --- a/stack/l2cap/l2c_int.h +++ b/stack/l2cap/l2c_int.h @@ -487,8 +487,6 @@ typedef struct { bool ble_check_round_robin; /* Do a round robin check */ tL2C_RCB ble_rcb_pool[BLE_MAX_L2CAP_CLIENTS]; /* Registration info pool */ - tL2CA_ECHO_DATA_CB* p_echo_data_cb; /* Echo data callback */ - uint16_t dyn_psm; uint16_t le_dyn_psm; /* Next LE dynamic PSM value to try to assign */ -- 2.11.0