From f5e08652f8352606b63a1bc2349f72c4b2e4755c Mon Sep 17 00:00:00 2001 From: Isaac Turner Date: Tue, 30 Apr 2024 12:04:43 +0800 Subject: [PATCH] [wpimath] Remove deprecated MatBuilder factory (#6557) --- .../main/java/edu/wpi/first/math/Matrix.java | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/wpimath/src/main/java/edu/wpi/first/math/Matrix.java b/wpimath/src/main/java/edu/wpi/first/math/Matrix.java index c3f796ed0f..cd77283649 100644 --- a/wpimath/src/main/java/edu/wpi/first/math/Matrix.java +++ b/wpimath/src/main/java/edu/wpi/first/math/Matrix.java @@ -645,23 +645,6 @@ public class Matrix { return new Matrix<>(SimpleMatrix.identity(Objects.requireNonNull(dim).getNum())); } - /** - * Entrypoint to the {@link MatBuilder} class for creation of custom matrices with the given - * dimensions and contents. - * - * @param rows The number of rows of the desired matrix. - * @param cols The number of columns of the desired matrix. - * @param The number of rows of the desired matrix as a generic. - * @param The number of columns of the desired matrix as a generic. - * @return A builder to construct the matrix. - * @deprecated Use {@link MatBuilder#fill} instead. - */ - @Deprecated(since = "2024", forRemoval = true) - @SuppressWarnings("removal") - public static MatBuilder mat(Nat rows, Nat cols) { - return new MatBuilder<>(Objects.requireNonNull(rows), Objects.requireNonNull(cols)); - } - /** * Reassigns dimensions of a {@link Matrix} to allow for operations with other matrices that have * wildcard dimensions.