mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
Remove unused method.
PiperOrigin-RevId: 756045245
This commit is contained in:
committed by
Copybara-Service
parent
94ddb09a7f
commit
4beed5b72a
@@ -115,7 +115,6 @@ std::string ConvertGattStatusToString(
|
||||
BleGattServer::BleGattServer(api::BluetoothAdapter* adapter,
|
||||
api::ble_v2::ServerGattConnectionCallback callback)
|
||||
: adapter_(dynamic_cast<BluetoothAdapter*>(adapter)),
|
||||
peripheral_(adapter_->mac_address().address(), adapter_->mac_address()),
|
||||
gatt_connection_callback_(std::move(callback)) {
|
||||
DCHECK(adapter_ != nullptr);
|
||||
}
|
||||
|
||||
@@ -70,10 +70,6 @@ class BleGattServer : public api::ble_v2::GattServer {
|
||||
void SetCloseNotifier(absl::AnyInvocable<void()> notifier)
|
||||
ABSL_LOCKS_EXCLUDED(mutex_);
|
||||
|
||||
api::ble_v2::BlePeripheral& GetBlePeripheral() override {
|
||||
return peripheral_;
|
||||
}
|
||||
|
||||
private:
|
||||
// Used to save native data related to the GATT characteristic.
|
||||
struct GattCharacteristicData {
|
||||
@@ -131,7 +127,6 @@ class BleGattServer : public api::ble_v2::GattServer {
|
||||
absl::Mutex mutex_;
|
||||
|
||||
BluetoothAdapter* const adapter_ = nullptr;
|
||||
api::ble_v2::BlePeripheral peripheral_;
|
||||
api::ble_v2::ServerGattConnectionCallback gatt_connection_callback_{};
|
||||
|
||||
::winrt::Windows::Devices::Bluetooth::GenericAttributeProfile::
|
||||
|
||||
Reference in New Issue
Block a user