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

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

get_remote_service_record is never called from JNI

packages/apps/Bluetooth$ grep get_remote_service_record -r .
packages/apps/Bluetooth$

seriously wtf

this means we can now start deleting other stuff that
this was anchoring

Bug: 159815595
Tag: #refactor
Test: compile & verify basic functions working
Change-Id: Id3fead35d56c3783ba07e98d2bdf6669aa5b2371
parent ff7bc416
Loading
Loading
Loading
Loading
+1 −10
Original line number Diff line number Diff line
@@ -260,15 +260,6 @@ int set_remote_device_property(RawAddress* remote_addr,
  return BT_STATUS_SUCCESS;
}

int get_remote_service_record(const RawAddress& remote_addr,
                              const bluetooth::Uuid& uuid) {
  if (!btif_is_enabled()) return BT_STATUS_NOT_READY;

  do_in_main_thread(FROM_HERE, base::BindOnce(btif_dm_get_remote_service_record,
                                              remote_addr, uuid));
  return BT_STATUS_SUCCESS;
}

int get_remote_services(RawAddress* remote_addr) {
  if (!interface_ready()) return BT_STATUS_NOT_READY;

@@ -549,7 +540,7 @@ EXPORT_SYMBOL bt_interface_t bluetoothInterface = {
    get_remote_device_properties,
    get_remote_device_property,
    set_remote_device_property,
    get_remote_service_record,
    nullptr,
    get_remote_services,
    start_discovery,
    cancel_discovery,