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

Commit 289ab47f authored by Henri Chataing's avatar Henri Chataing
Browse files

Remove unused function BTM_IsAclConnectionUpFromHandle

Bug: 331817295
Test: m com.android.btservices
Flag: EXEMPT, dead code removal
Change-Id: I1f02afcac3f5427a360b8873f17fa732fc67ec8b
parent 7f67f528
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -1157,10 +1157,6 @@ bool BTM_IsAclConnectionUpAndHandleValid(const RawAddress& remote_bda,
  return p_acl->hci_handle != HCI_INVALID_HANDLE;
}

bool BTM_IsAclConnectionUpFromHandle(uint16_t hci_handle) {
  return internal_.acl_get_connection_from_handle(hci_handle) != nullptr;
}

/*******************************************************************************
 *
 * Function         BTM_GetNumAclLinks
+0 −2
Original line number Diff line number Diff line
@@ -85,8 +85,6 @@ bool BTM_IsAclConnectionUp(const RawAddress& remote_bda,
bool BTM_IsAclConnectionUpAndHandleValid(const RawAddress& remote_bda,
                                         tBT_TRANSPORT transport);

bool BTM_IsAclConnectionUpFromHandle(uint16_t hci_handle);

/*******************************************************************************
 *
 * Function         BTM_GetRole
+0 −5
Original line number Diff line number Diff line
@@ -43,7 +43,6 @@ namespace stack_acl {
struct BTM_BLE_IS_RESOLVE_BDA BTM_BLE_IS_RESOLVE_BDA;
struct BTM_IsAclConnectionUp BTM_IsAclConnectionUp;
struct BTM_IsAclConnectionUpAndHandleValid BTM_IsAclConnectionUpAndHandleValid;
struct BTM_IsAclConnectionUpFromHandle BTM_IsAclConnectionUpFromHandle;
struct BTM_IsBleConnection BTM_IsBleConnection;
struct BTM_IsPhy2mSupported BTM_IsPhy2mSupported;
struct BTM_ReadRemoteConnectionAddr BTM_ReadRemoteConnectionAddr;
@@ -179,10 +178,6 @@ bool BTM_IsAclConnectionUpAndHandleValid(const RawAddress& remote_bda,
  return test::mock::stack_acl::BTM_IsAclConnectionUpAndHandleValid(remote_bda,
                                                                    transport);
}
bool BTM_IsAclConnectionUpFromHandle(uint16_t hci_handle) {
  inc_func_call_count(__func__);
  return test::mock::stack_acl::BTM_IsAclConnectionUpFromHandle(hci_handle);
}
bool BTM_IsBleConnection(uint16_t hci_handle) {
  inc_func_call_count(__func__);
  return test::mock::stack_acl::BTM_IsBleConnection(hci_handle);
+0 −9
Original line number Diff line number Diff line
@@ -72,15 +72,6 @@ struct BTM_IsAclConnectionUpAndHandleValid {
};
extern struct BTM_IsAclConnectionUpAndHandleValid
    BTM_IsAclConnectionUpAndHandleValid;
// Name: BTM_IsAclConnectionUpFromHandle
// Params: uint16_t hci_handle
// Returns: bool
struct BTM_IsAclConnectionUpFromHandle {
  std::function<bool(uint16_t hci_handle)> body{
      [](uint16_t /* hci_handle */) { return false; }};
  bool operator()(uint16_t hci_handle) { return body(hci_handle); };
};
extern struct BTM_IsAclConnectionUpFromHandle BTM_IsAclConnectionUpFromHandle;
// Name: BTM_IsBleConnection
// Params: uint16_t hci_handle
// Returns: bool