From 25ac6a21ab5223d55dc03e76dd7697a2cc7d1474 Mon Sep 17 00:00:00 2001 From: hai007 Date: Thu, 12 Mar 2026 11:31:17 -0700 Subject: [PATCH] Automated Code Change PiperOrigin-RevId: 882693871 --- .../implementation/windows/scheduled_executor.cc | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/internal/platform/implementation/windows/scheduled_executor.cc b/internal/platform/implementation/windows/scheduled_executor.cc index d1bcbf12..87792ff8 100644 --- a/internal/platform/implementation/windows/scheduled_executor.cc +++ b/internal/platform/implementation/windows/scheduled_executor.cc @@ -45,17 +45,7 @@ std::shared_ptr ScheduledExecutor::Schedule( return nullptr; } - if (NearbyFlags::GetInstance().GetBoolFlag( - platform::config_package_nearby::nearby_platform_feature:: - kRunScheduledExecutorCallbackOnExecutorThread)) { - return task_scheduler_.Schedule( - [this, runnable = std::move(runnable)]() mutable { - Execute(std::move(runnable)); - }, - duration); - } else { - return task_scheduler_.Schedule(std::move(runnable), duration); - } + return task_scheduler_.Schedule(std::move(runnable), duration); } void ScheduledExecutor::Execute(Runnable&& runnable) {