From 94c5226c7c247e555533f66c307f84d27a169790 Mon Sep 17 00:00:00 2001 From: Kaya <95276965+kytpbs@users.noreply.github.com> Date: Tue, 17 Dec 2024 22:25:57 +0100 Subject: [PATCH] Remove Unnecessary parts + correct imports Co-Authored-By: Ryan Blue <13878527+rzblue@users.noreply.github.com> --- .../main/native/cpp/frc2/command/CommandScheduler.cpp | 1 - .../test/native/cpp/frc2/command/CommandScheduleTest.cpp | 9 +++------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/wpilibNewCommands/src/main/native/cpp/frc2/command/CommandScheduler.cpp b/wpilibNewCommands/src/main/native/cpp/frc2/command/CommandScheduler.cpp index 0a80572e299..369e14367bc 100644 --- a/wpilibNewCommands/src/main/native/cpp/frc2/command/CommandScheduler.cpp +++ b/wpilibNewCommands/src/main/native/cpp/frc2/command/CommandScheduler.cpp @@ -225,7 +225,6 @@ void CommandScheduler::Run() { } m_watchdog.AddEpoch(command->GetName() + ".End(false)"); - // remove owned commands after everything else is done m_impl->ownedCommands.erase(command); } diff --git a/wpilibNewCommands/src/test/native/cpp/frc2/command/CommandScheduleTest.cpp b/wpilibNewCommands/src/test/native/cpp/frc2/command/CommandScheduleTest.cpp index 675e21342b6..840c05bb213 100644 --- a/wpilibNewCommands/src/test/native/cpp/frc2/command/CommandScheduleTest.cpp +++ b/wpilibNewCommands/src/test/native/cpp/frc2/command/CommandScheduleTest.cpp @@ -2,16 +2,13 @@ // Open Source Software; you can modify and/or share it under the terms of // the WPILib BSD license file in the root directory of this project. -#include -#include -#include - -#include - #include #include #include "CommandTestBase.h" +#include "frc2/command/FunctionalCommand.h" +#include "frc2/command/InstantCommand.h" +#include "frc2/command/RunCommand.h" using namespace frc2; class CommandScheduleTest : public CommandTestBase {};