diff --git a/src/main/java/org/apache/commons/math3/optim/nonlinear/vector/Weight.java b/src/main/java/org/apache/commons/math3/optim/nonlinear/vector/Weight.java index aa3299aea..56aac3576 100644 --- a/src/main/java/org/apache/commons/math3/optim/nonlinear/vector/Weight.java +++ b/src/main/java/org/apache/commons/math3/optim/nonlinear/vector/Weight.java @@ -39,7 +39,6 @@ public class Weight implements OptimizationData { * @param weight List of the values of the diagonal. */ public Weight(double[] weight) { - final int dim = weight.length; weightMatrix = new DiagonalMatrix(weight); }