mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
Remove unused methods.
PiperOrigin-RevId: 756053350
This commit is contained in:
committed by
Copybara-Service
parent
4beed5b72a
commit
59e527dbe3
@@ -164,12 +164,6 @@ class BleMedium : public api::ble_v2::BleMedium {
|
||||
// This is currently always false for all Apple hardware.
|
||||
bool IsExtendedAdvertisementsAvailable() override;
|
||||
|
||||
// A peripheral cannot be retreived via MAC address on Apple platforms.
|
||||
//
|
||||
// This always returns false and does not call the callback.
|
||||
bool GetRemotePeripheral(const std::string &mac_address,
|
||||
api::ble_v2::BleMedium::GetRemotePeripheralCallback callback) override;
|
||||
|
||||
// Returns true if `id` refers to a known BLE peripheral and calls `callback` with a reference to
|
||||
// said peripheral that is only guaranteed to be available for the duration of the callback.
|
||||
// Otherwise, does not call the callback and returns false.
|
||||
|
||||
@@ -536,13 +536,6 @@ bool BleMedium::IsExtendedAdvertisementsAvailable() {
|
||||
return [medium_ supportsExtendedAdvertisements];
|
||||
}
|
||||
|
||||
bool BleMedium::GetRemotePeripheral(const std::string &mac_address,
|
||||
api::ble_v2::BleMedium::GetRemotePeripheralCallback callback) {
|
||||
// Apple does not expose MAC address information, so we cannot retreive a peripheral via MAC
|
||||
// address.
|
||||
return false;
|
||||
}
|
||||
|
||||
bool BleMedium::GetRemotePeripheral(api::ble_v2::BlePeripheral::UniqueId unique_id,
|
||||
api::ble_v2::BleMedium::GetRemotePeripheralCallback callback) {
|
||||
// If the unique_id is 0, that means it's the local/empty peripheral. We must return "true"
|
||||
|
||||
Reference in New Issue
Block a user