[wpimath] Remove deprecated TrapezoidProfile method in C++ header (#6721)

This commit is contained in:
Gold856
2024-06-09 01:05:17 -04:00
committed by GitHub
parent 72ae751b9a
commit e2dcbd016d

View File

@@ -107,22 +107,6 @@ class TrapezoidProfile {
TrapezoidProfile(TrapezoidProfile&&) = default;
TrapezoidProfile& operator=(TrapezoidProfile&&) = default;
/**
* Calculates the position and velocity for the profile at a time t where the
* current state is at time t = 0.
*
* @param t How long to advance from the current state toward the desired
* state.
* @return The position and velocity of the profile at time t.
* @deprecated Pass the desired and current state into calculate instead of
* constructing a new TrapezoidProfile with the desired and current state
*/
[[deprecated(
"Pass the desired and current state into calculate instead of "
"constructing a new TrapezoidProfile with the desired and current "
"state")]]
State Calculate(units::second_t t) const;
/**
* Calculates the position and velocity for the profile at a time t where the
* current state is at time t = 0.