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

Commit 9f3c4698 authored by Hansong Zhang's avatar Hansong Zhang Committed by Automerger Merge Worker
Browse files

UIPC_REG_CBACK is unused am: 3b6184f2

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1735053

Change-Id: I022a37ff64149529b19241017b3cce14b3273187
parents f7403f65 3b6184f2
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -44,7 +44,6 @@ typedef enum {
 */

#define UIPC_REQ_RX_FLUSH 1
#define UIPC_REG_CBACK 2
#define UIPC_REG_REMOVE_ACTIVE_READSET 3
#define UIPC_SET_READ_POLL_TMO 4

+0 −6
Original line number Diff line number Diff line
@@ -707,12 +707,6 @@ extern bool UIPC_Ioctl(tUIPC_STATE& uipc, tUIPC_CH_ID ch_id, uint32_t request,
      uipc_flush_locked(uipc, ch_id);
      break;

    case UIPC_REG_CBACK:
      // BTIF_TRACE_EVENT("register callback ch %d srvfd %d, fd %d", ch_id,
      // uipc.ch[ch_id].srvfd, uipc.ch[ch_id].fd);
      uipc.ch[ch_id].cback = (tUIPC_RCV_CBACK*)param;
      break;

    case UIPC_REG_REMOVE_ACTIVE_READSET:
      /* user will read data directly and not use select loop */
      if (uipc.ch[ch_id].fd != UIPC_DISCONNECTED) {