mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
[commands] Remove deprecated C++ method TransferOwnership (#6780)
This commit is contained in:
@@ -32,12 +32,5 @@ class CommandHelper : public Base {
|
||||
return CommandPtr(
|
||||
std::make_unique<CRTP>(std::move(*static_cast<CRTP*>(this))));
|
||||
}
|
||||
|
||||
protected:
|
||||
[[deprecated("Use ToPtr() instead")]]
|
||||
std::unique_ptr<Command> TransferOwnership() &&
|
||||
override {
|
||||
return std::make_unique<CRTP>(std::move(*static_cast<CRTP*>(this)));
|
||||
}
|
||||
};
|
||||
} // namespace frc2
|
||||
|
||||
Reference in New Issue
Block a user