OSDN Git Service

Remove unused code in l2c_api.h
authorHansong Zhang <hsz@google.com>
Thu, 27 Aug 2020 23:06:00 +0000 (16:06 -0700)
committerHansong Zhang <hsz@google.com>
Thu, 27 Aug 2020 23:06:00 +0000 (16:06 -0700)
Bug: 159815595
Tag: #refactor
Test: compile & verify basic functions working
Change-Id: I7ab31403b9918c579b5f6a29248da331741644cb

stack/include/l2c_api.h

index 640fa31..6c244c6 100644 (file)
@@ -229,15 +229,6 @@ typedef void(tL2CA_ECHO_DATA_CB)(const RawAddress&, uint16_t, uint8_t*);
  */
 typedef void(tL2CA_CONGESTION_STATUS_CB)(uint16_t, bool);
 
-/* Callback prototype for number of packets completed events.
- * This callback notifies the application when Number of Completed Packets
- * event has been received.
- * This callback is originally designed for 3DG devices.
- * The parameter is:
- *          peer BD_ADDR
- */
-typedef void(tL2CA_NOCP_CB)(const RawAddress&);
-
 /* Transmit complete callback protype. This callback is optional. If
  * set, L2CAP will call it when packets are sent or flushed. If the
  * count is 0xFFFF, it means all packets are sent for that CID (eRTM
@@ -247,15 +238,6 @@ typedef void(tL2CA_NOCP_CB)(const RawAddress&);
  */
 typedef void(tL2CA_TX_COMPLETE_CB)(uint16_t, uint16_t);
 
-/* Callback for receiving credits from the remote device.
- * |credit_received| parameter represents number of credits received in "LE Flow
- * Control Credit" packet from the remote. |credit_count| parameter represents
- * the total available credits, including |credit_received|.
- */
-typedef void(tL2CA_CREDITS_RECEIVED_CB)(uint16_t local_cid,
-                                        uint16_t credits_received,
-                                        uint16_t credit_count);
-
 /* Define the structure that applications use to register with
  * L2CAP. This structure includes callback functions. All functions
  * MUST be provided, with the exception of the "connect pending"