mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[commands] Refactor C++ ScheduleCommand to use SmallSet (#5568)
Remove SetUtilities.h
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user