From: Zach Johnson Date: Fri, 28 Aug 2020 23:03:29 +0000 (-0700) Subject: BTA_MceGetRemoteMasInstances does nothing X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=d2cc9f102cf43680aea439219884b1eb79fab3ac;p=android-x86%2Fsystem-bt.git 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 --- diff --git a/bta/include/bta_mce_api.h b/bta/include/bta_mce_api.h index 224a25bed..4c1e85433 100644 --- a/bta/include/bta_mce_api.h +++ b/bta/include/bta_mce_api.h @@ -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 */ diff --git a/bta/mce/bta_mce_api.cc b/bta/mce/bta_mce_api.cc index 5edf790d6..be3748b68 100644 --- a/bta/mce/bta_mce_api.cc +++ b/bta/mce/bta_mce_api.cc @@ -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; -} diff --git a/btif/src/btif_mce.cc b/btif/src/btif_mce.cc index 489f9b255..1a8768b71 100644 --- a/btif/src/btif_mce.cc +++ b/btif/src/btif_mce.cc @@ -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; }