OSDN Git Service

Remove some unused stuff
authorHansong Zhang <hsz@google.com>
Fri, 22 Jan 2021 08:42:39 +0000 (00:42 -0800)
committerHansong Zhang <hsz@google.com>
Fri, 29 Jan 2021 20:59:04 +0000 (20:59 +0000)
Test: cert/run
Tag: #gd-refactor
Bug: 141555841
Change-Id: I6fcaf472341920f476608974bf3bf1183b9eb212

stack/acl/acl.h
stack/acl/btm_acl.cc
stack/include/acl_api.h
stack/include/l2cap_acl_interface.h
stack/test/common/mock_btm_api_layer.cc

index 5788193..649bec8 100644 (file)
@@ -399,7 +399,6 @@ struct sACL_CB {
   friend uint16_t BTM_GetNumAclLinks(void);
   friend uint16_t acl_get_supported_packet_types();
   friend uint8_t btm_handle_to_acl_index(uint16_t hci_handle);
-  friend void BTM_SetDefaultLinkSuperTout(uint16_t timeout);
   friend void acl_initialize_power_mode(const tACL_CONN& p_acl);
   friend void acl_set_disconnect_reason(tHCI_STATUS acl_disc_reason);
   friend void btm_acl_created(const RawAddress& bda, uint16_t hci_handle,
index 4d21a84..53c77eb 100644 (file)
@@ -2787,17 +2787,6 @@ bool acl_create_le_connection(const RawAddress& bd_addr) {
   return acl_create_le_connection_with_id(CONN_MGR_ID_L2CAP, bd_addr);
 }
 
-void acl_cancel_le_connection(const RawAddress& bd_addr) {
-  if (bluetooth::shim::is_gd_acl_enabled()) {
-    tBLE_BD_ADDR address_with_type{
-        .bda = bd_addr,
-        .type = BLE_ADDR_RANDOM,
-    };
-    return bluetooth::shim::ACL_CancelLeConnection(address_with_type);
-  }
-  connection_manager::direct_connect_remove(CONN_MGR_ID_L2CAP, bd_addr);
-}
-
 void acl_rcv_acl_data(BT_HDR* p_msg) {
   acl_header_t acl_header{
       .handle = HCI_INVALID_HANDLE,
index 7d2982e..50bbc7a 100644 (file)
@@ -248,9 +248,6 @@ void btm_cont_rswitch_from_handle(uint16_t hci_handle);
 
 uint8_t acl_link_role_from_handle(uint16_t handle);
 
-uint16_t acl_get_hci_handle_for_hcif(const RawAddress& bd_addr,
-                                     tBT_TRANSPORT transport);
-
 void acl_set_disconnect_reason(tHCI_STATUS acl_disc_reason);
 
 bool acl_is_role_switch_allowed();
index d6d1006..79aa103 100644 (file)
@@ -28,7 +28,6 @@ void acl_create_classic_connection(const RawAddress& bd_addr,
                                    bool is_bonding);
 bool acl_create_le_connection(const RawAddress& bd_addr);
 bool acl_create_le_connection_with_id(uint8_t id, const RawAddress& bd_addr);
-void acl_cancel_le_connection(const RawAddress& bd_addr);
 void acl_reject_connection_request(const RawAddress& bd_addr, uint8_t reason);
 void acl_send_data_packet_br_edr(const RawAddress& bd_addr, BT_HDR* p_buf);
 void acl_send_data_packet_ble(const RawAddress& bd_addr, BT_HDR* p_buf);
index e2ac67f..0b5c76f 100644 (file)
@@ -31,8 +31,3 @@ bool BTM_SetSecurityLevel(bool is_originator, const char* p_name,
                                              sec_level, psm, mx_proto_id,
                                              mx_chan_id);
 }
-
-uint8_t acl_link_role(const RawAddress& remote_bd_addr,
-                      tBT_TRANSPORT transport) {
-  return btm_api_interface->acl_link_role(remote_bd_addr, transport);
-}
\ No newline at end of file