OSDN Git Service

Remove unused API BTM_RequestPeerSCA
authorChris Manton <cmanton@google.com>
Sun, 28 Feb 2021 04:18:04 +0000 (20:18 -0800)
committerChris Manton <cmanton@google.com>
Mon, 8 Mar 2021 21:32:51 +0000 (13:32 -0800)
Toward meaningful code

Bug: 163134718
Test: cert
Tag: #refactor

Change-Id: I2bacaee6f567d717065cab643a249072645bc0ba

bta/test/common/mock_stack_acl.cc
stack/acl/btm_acl.cc
stack/include/btm_api.h

index 5b22f18..c6822b7 100644 (file)
@@ -245,9 +245,6 @@ void BTM_ReadConnectionAddr(const RawAddress& remote_bda,
                             tBLE_ADDR_TYPE* p_addr_type) {
   mock_function_count_map[__func__]++;
 }
-void BTM_RequestPeerSCA(const RawAddress& remote_bda, tBT_TRANSPORT transport) {
-  mock_function_count_map[__func__]++;
-}
 void BTM_acl_after_controller_started(const controller_t* controller) {
   mock_function_count_map[__func__]++;
 }
index 54ebdce..b9b8ff6 100644 (file)
@@ -1237,25 +1237,6 @@ uint16_t BTM_GetHCIConnHandle(const RawAddress& remote_bda,
 
 /*******************************************************************************
  *
- * Function         BTM_RequestPeerSCA
- *
- * Description      This function is called to request sleep clock accuracy
- *                  from peer device
- *
- ******************************************************************************/
-void BTM_RequestPeerSCA(const RawAddress& remote_bda, tBT_TRANSPORT transport) {
-  tACL_CONN* p;
-  p = internal_.btm_bda_to_acl(remote_bda, transport);
-  if (p == (tACL_CONN*)NULL) {
-    LOG_WARN("Unable to find active acl");
-    return;
-  }
-
-  btsnd_hcic_req_peer_sca(p->hci_handle);
-}
-
-/*******************************************************************************
- *
  * Function         BTM_GetPeerSCA
  *
  * Description      This function is called to get peer sleep clock accuracy
index 7f8b059..bdbf285 100644 (file)
@@ -752,17 +752,6 @@ uint16_t BTM_GetHCIConnHandle(const RawAddress& remote_bda,
 
 /*******************************************************************************
  *
- * Function         BTM_RequestPeerSCA
- *
- * Description      This function is called to request sleep clock accuracy
- *                  from peer device
- *
- ******************************************************************************/
-extern void BTM_RequestPeerSCA(const RawAddress& remote_bda,
-                               tBT_TRANSPORT transport);
-
-/*******************************************************************************
- *
  * Function         BTM_GetPeerSCA
  *
  * Description      This function is called to get peer sleep clock accuracy