OSDN Git Service

btif_mce_get_interface is never called
authorZach Johnson <zachoverflow@google.com>
Fri, 28 Aug 2020 23:23:45 +0000 (16:23 -0700)
committerZach Johnson <zachoverflow@google.com>
Fri, 28 Aug 2020 23:24:24 +0000 (16:24 -0700)
remove statics that are no longer referenced

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

btif/include/btif_mce.h
btif/src/bluetooth.cc
btif/src/btif_mce.cc

index 1eea206..85a085d 100644 (file)
@@ -28,8 +28,4 @@
 #ifndef BTIF_MCE_H
 #define BTIF_MCE_H
 
-#include <hardware/bt_mce.h>
-
-btmce_interface_t* btif_mce_get_interface();
-
 #endif
index 088e74a..59d5701 100644 (file)
@@ -35,7 +35,6 @@
 #include <hardware/bt_hearing_aid.h>
 #include <hardware/bt_hf_client.h>
 #include <hardware/bt_hh.h>
-#include <hardware/bt_mce.h>
 #include <hardware/bt_pan.h>
 #include <hardware/bt_rc.h>
 #include <hardware/bt_sdp.h>
@@ -109,8 +108,6 @@ extern const bthh_interface_t* btif_hh_get_interface();
 extern const bthd_interface_t* btif_hd_get_interface();
 /*pan*/
 extern const btpan_interface_t* btif_pan_get_interface();
-/*map client*/
-extern const btmce_interface_t* btif_mce_get_interface();
 /* gatt */
 extern const btgatt_interface_t* btif_gatt_get_interface();
 /* avrc target */
index 7fefdea..f7136cc 100644 (file)
  *  Static variables
  *****************************************************************************/
 
-static bt_status_t init(btmce_callbacks_t* callbacks) {
-  BTIF_TRACE_EVENT("%s", __func__);
-  btif_enable_service(BTA_MAP_SERVICE_ID);
-  return BT_STATUS_SUCCESS;
-}
-
-static bt_status_t get_remote_mas_instances(RawAddress* bd_addr) {
-  return BT_STATUS_SUCCESS;
-}
-
-static const btmce_interface_t mce_if = {
-    sizeof(btmce_interface_t), init, get_remote_mas_instances,
-};
-
-const btmce_interface_t* btif_mce_get_interface(void) {
-  BTIF_TRACE_EVENT("%s", __func__);
-  return &mce_if;
-}