OSDN Git Service

BTA_MceGetRemoteMasInstances does nothing
authorZach Johnson <zachoverflow@google.com>
Fri, 28 Aug 2020 23:03:29 +0000 (16:03 -0700)
committerZach Johnson <zachoverflow@google.com>
Fri, 28 Aug 2020 23:03:29 +0000 (16:03 -0700)
the state machine that handles this does not exist
anymore, since it was never actually registered.

delete delete delete

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

bta/include/bta_mce_api.h
bta/mce/bta_mce_api.cc
btif/src/btif_mce.cc

index 224a25b..4c1e854 100644 (file)
@@ -87,19 +87,4 @@ typedef struct {
  *  External Function Declarations
  ****************************************************************************/
 
-/*******************************************************************************
- *
- * Function         BTA_MceGetRemoteMasInstances
- *
- * Description      This function performs service discovery for the MAS service
- *                  by the given peer device. When the operation is completed
- *                  the tBTA_MCE_DM_CBACK callback function will be  called with
- *                  a BTA_MCE_MAS_DISCOVERY_COMP_EVT.
- *
- * Returns          BTA_MCE_SUCCESS, if the request is being processed.
- *                  BTA_MCE_FAILURE, otherwise.
- *
- ******************************************************************************/
-extern tBTA_MCE_STATUS BTA_MceGetRemoteMasInstances(const RawAddress& bd_addr);
-
 #endif /* BTA_MCE_API_H */
index 5edf790..be3748b 100644 (file)
 /*****************************************************************************
  *  Constants
  ****************************************************************************/
-
-/*******************************************************************************
- *
- * Function         BTA_MceGetRemoteMasInstances
- *
- * Description      This function performs service discovery for the MAS service
- *                  by the given peer device. When the operation is completed
- *                  the tBTA_MCE_DM_CBACK callback function will be  called with
- *                  a BTA_MCE_MAS_DISCOVERY_COMP_EVT.
- *
- * Returns          BTA_MCE_SUCCESS, if the request is being processed.
- *                  BTA_MCE_FAILURE, otherwise.
- *
- ******************************************************************************/
-tBTA_MCE_STATUS BTA_MceGetRemoteMasInstances(const RawAddress& bd_addr) {
-  tBTA_MCE_API_GET_REMOTE_MAS_INSTANCES* p_msg =
-      (tBTA_MCE_API_GET_REMOTE_MAS_INSTANCES*)osi_malloc(
-          sizeof(tBTA_MCE_API_GET_REMOTE_MAS_INSTANCES));
-
-  APPL_TRACE_API("%s", __func__);
-
-  p_msg->hdr.event = BTA_MCE_API_GET_REMOTE_MAS_INSTANCES_EVT;
-  p_msg->bd_addr = bd_addr;
-
-  bta_sys_sendmsg(p_msg);
-
-  return BTA_MCE_SUCCESS;
-}
index 489f9b2..1a8768b 100644 (file)
@@ -59,8 +59,6 @@ static bt_status_t init(btmce_callbacks_t* callbacks) {
 static bt_status_t get_remote_mas_instances(RawAddress* bd_addr) {
   VLOG(2) << __func__ << ": remote_addr=" << bd_addr;
 
-  BTA_MceGetRemoteMasInstances(*bd_addr);
-
   return BT_STATUS_SUCCESS;
 }