From bbbcf715115908a43ef4237ce1137aeeda517f4e Mon Sep 17 00:00:00 2001 From: Gilles Sadowski Date: Thu, 1 Mar 2012 13:14:32 +0000 Subject: [PATCH] Removed unused variable (discovered by "FindBugs"). git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1295552 13f79535-47bb-0310-9956-ffa450edef68 --- .../optimization/general/AbstractLeastSquaresOptimizer.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/main/java/org/apache/commons/math3/optimization/general/AbstractLeastSquaresOptimizer.java b/src/main/java/org/apache/commons/math3/optimization/general/AbstractLeastSquaresOptimizer.java index e156d65a2..5092e7457 100644 --- a/src/main/java/org/apache/commons/math3/optimization/general/AbstractLeastSquaresOptimizer.java +++ b/src/main/java/org/apache/commons/math3/optimization/general/AbstractLeastSquaresOptimizer.java @@ -69,8 +69,6 @@ public abstract class AbstractLeastSquaresOptimizer protected double[] point; /** Current objective function value. */ protected double[] objective; - /** Current residuals. */ - protected double[] residuals; /** Weighted residuals */ protected double[] weightedResiduals; /** Cost value (square root of the sum of the residuals). */ @@ -261,7 +259,6 @@ public abstract class AbstractLeastSquaresOptimizer // Store least squares problem characteristics. jF = f.jacobian(); - this.residuals = new double[target.length]; // Arrays shared with the other private methods. point = startPoint.clone();