From 4c13dea8eb2713c104d2768e0961ba9b21c68a7d Mon Sep 17 00:00:00 2001 From: eidenkim Date: Mon, 18 Oct 2021 16:10:36 -0700 Subject: [PATCH] Implemented StartAdvertising() API for Dart Wrappers. PiperOrigin-RevId: 404088232 --- windows/dart/core_adapter_dart.cc | 1 - windows/dart/core_adapter_dart.h | 1 - 2 files changed, 2 deletions(-) diff --git a/windows/dart/core_adapter_dart.cc b/windows/dart/core_adapter_dart.cc index 0895dab8..12999741 100644 --- a/windows/dart/core_adapter_dart.cc +++ b/windows/dart/core_adapter_dart.cc @@ -162,7 +162,6 @@ void StartAdvertisingDart(Core* pCore, "Posting message to port failed."); } }; - ResultCallback callback; callback.result_cb = [result_cb](Status status) { NEARBY_LOG(INFO, "Result callback called. %d.", status.value); diff --git a/windows/dart/core_adapter_dart.h b/windows/dart/core_adapter_dart.h index 9c005d29..496e5a6a 100644 --- a/windows/dart/core_adapter_dart.h +++ b/windows/dart/core_adapter_dart.h @@ -65,7 +65,6 @@ DLL_API void __stdcall StartAdvertisingDart(Core* pCore, Dart_Port disconnected_cb, Dart_Port bandwidth_changed_cb, Dart_Port result_cb); - // Stops advertising a local endpoint. Should be called after calling // StartAdvertising, as soon as the application no longer needs to advertise // itself or goes inactive. Payloads can still be sent to connected