OSDN Git Service

num_read_pages is unused
authorHansong Zhang <hsz@google.com>
Fri, 30 Oct 2020 03:18:11 +0000 (20:18 -0700)
committerHansong Zhang <hsz@google.com>
Wed, 4 Nov 2020 18:14:49 +0000 (10:14 -0800)
Bug: 159815595
Tag: #refactor
Test: compile & verify basic functions working
Change-Id: I725cac7c4d6ae3801b6f83ea16cc10d9cdb42276

stack/acl/btm_acl.cc
stack/btm/btm_dev.cc
stack/btm/btm_sec.cc
stack/btm/security_device_record.h

index 74778cf..2ce0117 100644 (file)
@@ -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]);
 
index 4be982f..e20a485 100644 (file)
@@ -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;
index a500d73..a50321e 100644 (file)
@@ -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;
 
index ef242fb..dc5e32b 100644 (file)
@@ -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 {