OSDN Git Service

Remove unused def L2CAP_WAKE_PARKED_LINK
authorChris Manton <cmanton@google.com>
Thu, 3 Sep 2020 16:41:47 +0000 (09:41 -0700)
committerChris Manton <cmanton@google.com>
Wed, 16 Sep 2020 05:52:57 +0000 (05:52 +0000)
Because when false untested hence unsupported

Bug: 163134718
Tag: #refactor
Test: compile & verify basic functions working
Test: acts -tc BleCocTest
Change-Id: Ie24b10ed24230616f9f086b2463b09c37eb57e6f

stack/l2cap/l2c_int.h
stack/l2cap/l2c_link.cc

index 9ce55e8..4f6047a 100644 (file)
@@ -651,12 +651,8 @@ extern void l2c_link_sec_comp2(const RawAddress& p_bda, tBT_TRANSPORT trasnport,
                                void* p_ref_data, uint8_t status);
 extern void l2c_link_adjust_chnl_allocation(void);
 
-#if (L2CAP_WAKE_PARKED_LINK == TRUE)
 extern bool l2c_link_check_power_mode(tL2C_LCB* p_lcb);
 #define L2C_LINK_CHECK_POWER_MODE(x) l2c_link_check_power_mode((x))
-#else  // L2CAP_WAKE_PARKED_LINK
-#define L2C_LINK_CHECK_POWER_MODE(x) (false)
-#endif  // L2CAP_WAKE_PARKED_LINK
 
 #if (L2CAP_CONFORMANCE_TESTING == TRUE)
 /* Used only for conformance testing */
index 3543881..b3a4786 100644 (file)
@@ -803,7 +803,6 @@ void l2c_pin_code_request(const RawAddress& bd_addr) {
   }
 }
 
-#if (L2CAP_WAKE_PARKED_LINK == TRUE)
 /*******************************************************************************
  *
  * Function         l2c_link_check_power_mode
@@ -846,7 +845,6 @@ bool l2c_link_check_power_mode(tL2C_LCB* p_lcb) {
   }
   return false;
 }
-#endif /* L2CAP_WAKE_PARKED_LINK == TRUE) */
 
 /*******************************************************************************
  *