OSDN Git Service

bta_mce_enable is never referenced
authorZach Johnson <zachoverflow@google.com>
Fri, 28 Aug 2020 22:57:39 +0000 (15:57 -0700)
committerZach Johnson <zachoverflow@google.com>
Fri, 28 Aug 2020 22:57:39 +0000 (15:57 -0700)
Bug: 159815595
Tag: #refactor
Test: compile & verify basic functions working
Change-Id: I9c206f21641623395f98d4f556e40cbdf4cb22ce

bta/mce/bta_mce_act.cc
bta/mce/bta_mce_int.h

index 2f2b52b..da21042 100644 (file)
@@ -114,23 +114,6 @@ static void bta_mce_search_cback(uint16_t result, void* user_data) {
 
 /*******************************************************************************
  *
- * Function     bta_mce_enable
- *
- * Description  Initializes the MCE I/F
- *
- * Returns      void
- *
- ******************************************************************************/
-void bta_mce_enable(tBTA_MCE_MSG* p_data) {
-  tBTA_MCE_STATUS status = BTA_MCE_SUCCESS;
-  bta_mce_cb.p_dm_cback = p_data->enable.p_cback;
-  tBTA_MCE bta_mce;
-  bta_mce.status = status;
-  bta_mce_cb.p_dm_cback(BTA_MCE_ENABLE_EVT, &bta_mce, NULL);
-}
-
-/*******************************************************************************
- *
  * Function     bta_mce_get_remote_mas_instances
  *
  * Description  Discovers MAS instances on remote device
index 7a7bf27..3336de7 100644 (file)
@@ -78,7 +78,6 @@ extern tBTA_MCE_CB bta_mce_cb;
 /* config struct */
 extern tBTA_MCE_CFG* p_bta_mce_cfg;
 
-extern void bta_mce_enable(tBTA_MCE_MSG* p_data);
 extern void bta_mce_get_remote_mas_instances(tBTA_MCE_MSG* p_data);
 
 #endif /* BTA_MCE_INT_H */