diff --git a/rclcpp/test/rclcpp/executors/test_events_executor.cpp b/rclcpp/test/rclcpp/executors/test_events_executor.cpp index 0d678438ed..fb5c9a5166 100644 --- a/rclcpp/test/rclcpp/executors/test_events_executor.cpp +++ b/rclcpp/test/rclcpp/executors/test_events_executor.cpp @@ -75,8 +75,6 @@ TEST_F(TestEventsExecutor, run_pub_sub) !spin_exited && (std::chrono::high_resolution_clock::now() - start < 1s)) { - auto time = std::chrono::high_resolution_clock::now() - start; - auto time_msec = std::chrono::duration_cast(time); std::this_thread::sleep_for(25ms); }