diff --git a/wpilibNewCommands/src/main/native/include/frc2/command/Command.h b/wpilibNewCommands/src/main/native/include/frc2/command/Command.h index aabbf05372..4b508cfb19 100644 --- a/wpilibNewCommands/src/main/native/include/frc2/command/Command.h +++ b/wpilibNewCommands/src/main/native/include/frc2/command/Command.h @@ -487,13 +487,6 @@ class Command : public wpi::Sendable, public wpi::SendableHelper { /// Requirements set. wpi::SmallSet m_requirements; - /** - * Transfers ownership of this command to a unique pointer. Used for - * decorator methods. - */ - [[deprecated("Use ToPtr() instead")]] - virtual std::unique_ptr TransferOwnership() && = 0; - std::optional m_previousComposition; }; diff --git a/wpilibNewCommands/src/main/native/include/frc2/command/CommandHelper.h b/wpilibNewCommands/src/main/native/include/frc2/command/CommandHelper.h index 83451fe8dc..8f36b7a1c1 100644 --- a/wpilibNewCommands/src/main/native/include/frc2/command/CommandHelper.h +++ b/wpilibNewCommands/src/main/native/include/frc2/command/CommandHelper.h @@ -32,12 +32,5 @@ class CommandHelper : public Base { return CommandPtr( std::make_unique(std::move(*static_cast(this)))); } - - protected: - [[deprecated("Use ToPtr() instead")]] - std::unique_ptr TransferOwnership() && - override { - return std::make_unique(std::move(*static_cast(this))); - } }; } // namespace frc2 diff --git a/wpilibNewCommands/src/main/native/include/frc2/command/SelectCommand.h b/wpilibNewCommands/src/main/native/include/frc2/command/SelectCommand.h index 5eb8733219..d956750c7e 100644 --- a/wpilibNewCommands/src/main/native/include/frc2/command/SelectCommand.h +++ b/wpilibNewCommands/src/main/native/include/frc2/command/SelectCommand.h @@ -133,13 +133,6 @@ class SelectCommand : public CommandHelper> { nullptr); } - protected: - [[deprecated("Use ToPtr() instead")]] - std::unique_ptr TransferOwnership() && - override { - return std::make_unique(std::move(*this)); - } - private: std::unordered_map> m_commands; std::function m_selector;