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

Commit a74dda11 authored by Zach Johnson's avatar Zach Johnson
Browse files

BTA_MceGetRemoteMasInstances does nothing

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
parent 3840d2c5
Loading
Loading
Loading
Loading
+0 −15
Original line number Diff line number Diff line
@@ -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 */
+0 −28
Original line number Diff line number Diff line
@@ -37,31 +37,3 @@
/*****************************************************************************
 *  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;
}
+0 −2
Original line number Diff line number Diff line
@@ -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;
}