From ecdaa7e652d7ec3031f2ea1c03d43e2960e77aeb Mon Sep 17 00:00:00 2001 From: David Vo Date: Mon, 30 Dec 2024 19:25:48 +1100 Subject: [PATCH] Revert "Merge pull request #71 from narmstro2020/ScheduleDecorator" This reverts commit 80068977c14cc2c93cf821b87594c97f723ca939, reversing changes made to 81f6129bb566147a767f1ff56b0060d4131c83c9. --- commands2/command.py | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/commands2/command.py b/commands2/command.py index fd26040..26506a0 100644 --- a/commands2/command.py +++ b/commands2/command.py @@ -384,22 +384,6 @@ def asProxy(self) -> ProxyCommand: return ProxyCommand(self) - def fork(self, *commands: Command) -> ProxyCommand: - """ - Decorates this command to run "forked" by wrapping it in a ScheduleCommand. Use this for - "forking off" from command compositions when the user does not wish to extend the command's - requirements to the entire command composition. Note that if run from a composition, the - composition will not know about the status of the scheduled commands, and will treat this - command as finishing instantly. Commands can be added to this and will be scheduled in order - with this command scheduled first., see the `WPILib docs `_ for a full explanation. - - :param other: other commands to schedule along with this one. This command is scheduled first. - :returns: the decorated command - """ - from .schedulecommand import ScheduleCommand - - return ScheduleCommand(self, [self] + commands) - def unless(self, condition: Callable[[], bool]) -> ConditionalCommand: """ Decorates this command to only run if this condition is not met. If the command is already