Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a5e92b1e authored by Hansong Zhang's avatar Hansong Zhang Committed by Automerger Merge Worker
Browse files

Remove some unused stuff am: 99e0fa6c

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1557354

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I016491621801e308362366a9ea0ec10a4fd07d55
parents d87dbff0 99e0fa6c
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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,
+0 −11
Original line number Diff line number Diff line
@@ -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,
+0 −3
Original line number Diff line number Diff line
@@ -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();
+0 −1
Original line number Diff line number Diff line
@@ -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);
+0 −5
Original line number Diff line number Diff line
@@ -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