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

Commit 3b6184f2 authored by Hansong Zhang's avatar Hansong Zhang
Browse files

UIPC_REG_CBACK is unused

Test: cert/run
Bug: 190730870
Tag: #refactor
Change-Id: Iabe758bca2cc0e92fbd1ec7fe683e80c101d2a9a
parent 3ebcf9c3
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) {