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

Commit 37ba312f authored by Hansong Zhang's avatar Hansong Zhang
Browse files

num_read_pages is unused

Bug: 159815595
Tag: #refactor
Test: compile & verify basic functions working
Change-Id: I725cac7c4d6ae3801b6f83ea16cc10d9cdb42276
parent c94db22a
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -838,8 +838,6 @@ void btm_process_remote_ext_features(tACL_CONN* p_acl_cb,
    return;
  }

  p_dev_rec->num_read_pages = num_read_pages;

  p_dev_rec->remote_supports_hci_role_switch =
      HCI_SWITCH_SUPPORTED(p_acl_cb->peer_lmp_feature_pages[0]);

+0 −2
Original line number Diff line number Diff line
@@ -99,8 +99,6 @@ bool BTM_SecAddDevice(const RawAddress& bd_addr, DEV_CLASS dev_class,
            BTM_MAX_REM_BD_NAME_LEN + 1);
  }

  p_dev_rec->num_read_pages = 0;

  if (p_link_key) {
    VLOG(2) << __func__ << ": BDA: " << bd_addr;
    p_dev_rec->sec_flags |= BTM_SEC_LINK_KEY_KNOWN;
+1 −2
Original line number Diff line number Diff line
@@ -2420,8 +2420,7 @@ void btm_io_capabilities_req(const RawAddress& p) {
  BTM_TRACE_EVENT("%s: State: %s", __func__,
                  btm_pair_state_descr(btm_cb.pairing_state));

  BTM_TRACE_DEBUG("%s:Security mode: %d, Num Read Remote Feat pages: %d",
                  __func__, btm_cb.security_mode, p_dev_rec->num_read_pages);
  BTM_TRACE_DEBUG("%s:Security mode: %d", __func__, btm_cb.security_mode);

  p_dev_rec->sm4 |= BTM_SM4_TRUE;

+0 −1
Original line number Diff line number Diff line
@@ -259,7 +259,6 @@ typedef struct {

  tBTM_BD_NAME sec_bd_name; /* User friendly name of the device. (may be
                               truncated to save space in dev_rec table) */
  uint8_t num_read_pages;

  uint8_t sec_state;          /* Operating state                    */
  bool is_security_state_idle() const {