[commands] Refactor C++ ScheduleCommand to use SmallSet (#5568)

Remove SetUtilities.h
This commit is contained in:
Ryan Blue
2023-08-29 16:16:15 -04:00
committed by GitHub
parent 52297ffe29
commit 36d514eae7
5 changed files with 6 additions and 34 deletions

View File

@@ -7,11 +7,13 @@
using namespace frc2;
ScheduleCommand::ScheduleCommand(std::span<Command* const> toSchedule) {
SetInsert(m_toSchedule, toSchedule);
for (auto cmd : toSchedule) {
m_toSchedule.insert(cmd);
}
}
ScheduleCommand::ScheduleCommand(Command* toSchedule) {
SetInsert(m_toSchedule, {&toSchedule, 1});
m_toSchedule.insert(toSchedule);
}
void ScheduleCommand::Initialize() {