OSDN Git Service

Remove unused vars tBTM_CB::tBTM_BLE_CB::tBTM_LE_RANDOM_CB
authorChris Manton <cmanton@google.com>
Fri, 18 Sep 2020 02:20:54 +0000 (19:20 -0700)
committerChris Manton <cmanton@google.com>
Mon, 21 Sep 2020 20:11:34 +0000 (20:11 +0000)
tBTM_CB::tBTM_BLE_CB::tBTM_LE_RANDOM_CB::p
tBTM_CB::tBTM_BLE_CB::tBTM_LE_RANDOM_CB::p_generate_cback
tBTM_CB::tBTM_BLE_CB::tBTM_LE_RANDOM_CB::random_bda

Towards readable code

Bug: 163134718
Tag: #refactor
Test: acts -tc BleCocTest
Test: ble paired 2 phones

Change-Id: I8752296aef2348778fca7d9d1fa3dce67017cee2

stack/btm/btm_ble_int_types.h

index 51730c3..59142ec 100644 (file)
@@ -149,9 +149,6 @@ typedef void(tBTM_BLE_ADDR_CBACK)(const RawAddress& static_random, void* p);
 typedef struct {
   tBLE_ADDR_TYPE own_addr_type; /* local device LE address type */
   RawAddress private_addr;
-  RawAddress random_bda;
-  tBTM_BLE_ADDR_CBACK* p_generate_cback;
-  void* p;
   alarm_t* refresh_raddr_timer;
 } tBTM_LE_RANDOM_CB;