OSDN Git Service

Remove unused defs BLE_ADDR_IS_STATIC
authorChris Manton <cmanton@google.com>
Fri, 28 Aug 2020 21:40:32 +0000 (14:40 -0700)
committerChris Manton <cmanton@google.com>
Fri, 28 Aug 2020 23:49:05 +0000 (16:49 -0700)
And:
PHY_LE_1M_MASK
PHY_LE_2M_MASK
PHY_LE_CODED_MASK
BLE_ADDR_TYPE_MASK

Towards readable code

Bug: 163134718
Tag: #refactor
Test: compile & verify basic functions working
Change-Id: I1d5f20fb16e4845b5b4150393b467c2d9f683bf5

stack/include/bt_types.h

index d5d2f22..245b675 100644 (file)
@@ -753,13 +753,6 @@ typedef struct {
 #define BLE_ADDR_RANDOM_ID 0x03
 #define BLE_ADDR_ANONYMOUS 0xFF
 typedef uint8_t tBLE_ADDR_TYPE;
-#define BLE_ADDR_TYPE_MASK (BLE_ADDR_RANDOM | BLE_ADDR_PUBLIC)
-
-#define PHY_LE_1M_MASK 1
-#define PHY_LE_2M_MASK 2
-#define PHY_LE_CODED_MASK 4
-
-#define BLE_ADDR_IS_STATIC(x) (((x)[0] & 0xC0) == 0xC0)
 
 #ifdef __cplusplus
 struct tBLE_BD_ADDR {