From: Zach Johnson Date: Fri, 28 Aug 2020 22:48:38 +0000 (-0700) Subject: Remove now unused BTA_MceEnable X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=cc8001f35b968e727994e47164994de4aa3dc489;p=android-x86%2Fsystem-bt.git Remove now unused BTA_MceEnable Bug: 159815595 Tag: #refactor Test: compile & verify basic functions working Change-Id: If7f46048da5a3eb87a4f8e1dd111a0ec4e44cef9 --- diff --git a/bta/include/bta_mce_api.h b/bta/include/bta_mce_api.h index 182e5da72..224a25bed 100644 --- a/bta/include/bta_mce_api.h +++ b/bta/include/bta_mce_api.h @@ -89,22 +89,6 @@ typedef struct { /******************************************************************************* * - * Function BTA_MceEnable - * - * Description Enable the MCE I/F service. When the enable - * operation is complete the callback function will be - * called with a BTA_MCE_ENABLE_EVT. This function must - * be called before other functions in the MCE API are - * called. - * - * Returns BTA_MCE_SUCCESS if successful. - * BTA_MCE_FAIL if internal failure. - * - ******************************************************************************/ -extern tBTA_MCE_STATUS BTA_MceEnable(tBTA_MCE_DM_CBACK* p_cback); - -/******************************************************************************* - * * Function BTA_MceGetRemoteMasInstances * * Description This function performs service discovery for the MAS service diff --git a/bta/mce/bta_mce_api.cc b/bta/mce/bta_mce_api.cc index 7ab10dae8..5edf790d6 100644 --- a/bta/mce/bta_mce_api.cc +++ b/bta/mce/bta_mce_api.cc @@ -38,46 +38,6 @@ * Constants ****************************************************************************/ -static const tBTA_SYS_REG bta_mce_reg = {bta_mce_sm_execute, NULL}; - -/******************************************************************************* - * - * Function BTA_MceEnable - * - * Description Enable the MCE I/F service. When the enable - * operation is complete the callback function will be - * called with a BTA_MCE_ENABLE_EVT. This function must - * be called before other functions in the MCE API are - * called. - * - * Returns BTA_MCE_SUCCESS if successful. - * BTA_MCE_FAIL if internal failure. - * - ******************************************************************************/ -tBTA_MCE_STATUS BTA_MceEnable(tBTA_MCE_DM_CBACK* p_cback) { - tBTA_MCE_STATUS status = BTA_MCE_FAILURE; - - APPL_TRACE_API("%", __func__); - - if (p_cback && !bta_sys_is_register(BTA_ID_MCE)) { - memset(&bta_mce_cb, 0, sizeof(tBTA_MCE_CB)); - - /* register with BTA system manager */ - bta_sys_register(BTA_ID_MCE, &bta_mce_reg); - - if (p_cback) { - tBTA_MCE_API_ENABLE* p_buf = - (tBTA_MCE_API_ENABLE*)osi_malloc(sizeof(tBTA_MCE_API_ENABLE)); - p_buf->hdr.event = BTA_MCE_API_ENABLE_EVT; - p_buf->p_cback = p_cback; - bta_sys_sendmsg(p_buf); - status = BTA_MCE_SUCCESS; - } - } - - return status; -} - /******************************************************************************* * * Function BTA_MceGetRemoteMasInstances