Remove unused method.

PiperOrigin-RevId: 756045245
This commit is contained in:
Francis Tsui
2025-05-07 16:11:41 -07:00
committed by Copybara-Service
parent 94ddb09a7f
commit 4beed5b72a
8 changed files with 6 additions and 35 deletions
@@ -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::