OSDN Git Service

Remove BTM_SimpleSetSecurityLevel
authorZach Johnson <zachoverflow@google.com>
Wed, 26 Aug 2020 00:32:58 +0000 (17:32 -0700)
committerZach Johnson <zachoverflow@google.com>
Wed, 26 Aug 2020 00:32:58 +0000 (17:32 -0700)
no longer needed

Bug: 159815595
Tag: #refactor
Test: compile & verify basic functions working
Change-Id: I6e42378ef8a2c521ef7a5915ddd835342a04018f

main/shim/btm_api.h
stack/btm/btm_sec.cc
stack/btm/btm_sec.h

index 3ca8036..5a9cccc 100644 (file)
@@ -1443,8 +1443,6 @@ bool BTM_GetSecurityFlagsByTransport(const RawAddress& bd_addr,
  ******************************************************************************/
 void BTM_SetPinType(uint8_t pin_type, PIN_CODE pin_code, uint8_t pin_code_len);
 
-bool BTM_SimpleSetSecurityLevel(uint8_t service_id, uint16_t sec_level,
-                                uint16_t psm);
 /*******************************************************************************
  *
  * Function         BTM_SetSecurityLevel
index 43632bd..2f51588 100644 (file)
@@ -351,12 +351,6 @@ void BTM_SetPinType(uint8_t pin_type, PIN_CODE pin_code, uint8_t pin_code_len) {
 
 #define BTM_NO_AVAIL_SEC_SERVICES ((uint16_t)0xffff)
 
-bool BTM_SimpleSetSecurityLevel(uint8_t service_id, uint16_t sec_level,
-                                uint16_t psm) {
-  return BTM_SetSecurityLevel(true, "", service_id, sec_level, psm, 0, 0) &&
-         BTM_SetSecurityLevel(false, "", service_id, sec_level, psm, 0, 0);
-}
-
 /*******************************************************************************
  *
  * Function         BTM_SetSecurityLevel
index 49d548d..5ac7879 100644 (file)
@@ -135,8 +135,6 @@ void BTM_SetPinType(uint8_t pin_type, PIN_CODE pin_code, uint8_t pin_code_len);
  * Returns          true if registered OK, else false
  *
  ******************************************************************************/
-bool BTM_SimpleSetSecurityLevel(uint8_t service_id, uint16_t sec_level,
-                                uint16_t psm);
 bool BTM_SetSecurityLevel(bool is_originator, const char* p_name,
                           uint8_t service_id, uint16_t sec_level, uint16_t psm,
                           uint32_t mx_proto_id, uint32_t mx_chan_id);