From 7360926bebecbdfc43fcb13d21bd742c8c345cbf Mon Sep 17 00:00:00 2001 From: Sebastian Bazley Date: Sun, 5 Dec 2010 19:27:21 +0000 Subject: [PATCH] Unused imports git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1042424 13f79535-47bb-0310-9956-ffa450edef68 --- .../commons/math/distribution/NormalDistributionImpl.java | 1 - .../org/apache/commons/math/exception/MathUserException.java | 2 -- .../math/analysis/interpolation/NevilleInterpolatorTest.java | 1 - .../commons/math/analysis/solvers/LaguerreSolverTest.java | 5 ----- .../commons/math/analysis/solvers/SecantSolverTest.java | 1 - .../math/analysis/solvers/UnivariateRealSolverUtilsTest.java | 1 - .../org/apache/commons/math/linear/ArrayRealVectorTest.java | 4 ---- .../org/apache/commons/math/linear/SparseRealVectorTest.java | 4 ---- .../math/ode/nonstiff/HighamHall54IntegratorTest.java | 1 - ...tartDifferentiableMultivariateVectorialOptimizerTest.java | 1 - .../math/optimization/general/GaussNewtonOptimizerTest.java | 1 - .../general/NonLinearConjugateGradientOptimizerTest.java | 2 -- 12 files changed, 24 deletions(-) diff --git a/src/main/java/org/apache/commons/math/distribution/NormalDistributionImpl.java b/src/main/java/org/apache/commons/math/distribution/NormalDistributionImpl.java index 0d7ce7da3..6cf45bde2 100644 --- a/src/main/java/org/apache/commons/math/distribution/NormalDistributionImpl.java +++ b/src/main/java/org/apache/commons/math/distribution/NormalDistributionImpl.java @@ -21,7 +21,6 @@ import java.io.Serializable; import org.apache.commons.math.MathException; import org.apache.commons.math.exception.NotStrictlyPositiveException; -import org.apache.commons.math.MaxIterationsExceededException; import org.apache.commons.math.exception.util.LocalizedFormats; import org.apache.commons.math.special.Erf; import org.apache.commons.math.util.FastMath; diff --git a/src/main/java/org/apache/commons/math/exception/MathUserException.java b/src/main/java/org/apache/commons/math/exception/MathUserException.java index ac30c5e2c..57e6aa0af 100644 --- a/src/main/java/org/apache/commons/math/exception/MathUserException.java +++ b/src/main/java/org/apache/commons/math/exception/MathUserException.java @@ -16,8 +16,6 @@ */ package org.apache.commons.math.exception; -import java.util.Locale; - import org.apache.commons.math.exception.util.Localizable; import org.apache.commons.math.exception.util.LocalizedFormats; diff --git a/src/test/java/org/apache/commons/math/analysis/interpolation/NevilleInterpolatorTest.java b/src/test/java/org/apache/commons/math/analysis/interpolation/NevilleInterpolatorTest.java index c8150cd8a..8b83312b6 100644 --- a/src/test/java/org/apache/commons/math/analysis/interpolation/NevilleInterpolatorTest.java +++ b/src/test/java/org/apache/commons/math/analysis/interpolation/NevilleInterpolatorTest.java @@ -21,7 +21,6 @@ import org.apache.commons.math.exception.NonMonotonousSequenceException; import org.apache.commons.math.analysis.Expm1Function; import org.apache.commons.math.analysis.SinFunction; import org.apache.commons.math.analysis.UnivariateRealFunction; -import org.apache.commons.math.exception.MathUserException; import org.apache.commons.math.util.FastMath; import junit.framework.TestCase; diff --git a/src/test/java/org/apache/commons/math/analysis/solvers/LaguerreSolverTest.java b/src/test/java/org/apache/commons/math/analysis/solvers/LaguerreSolverTest.java index 30b404529..79f209499 100644 --- a/src/test/java/org/apache/commons/math/analysis/solvers/LaguerreSolverTest.java +++ b/src/test/java/org/apache/commons/math/analysis/solvers/LaguerreSolverTest.java @@ -16,17 +16,12 @@ */ package org.apache.commons.math.analysis.solvers; -import org.apache.commons.math.MathException; -import org.apache.commons.math.TestUtils; -import org.apache.commons.math.analysis.SinFunction; import org.apache.commons.math.analysis.polynomials.PolynomialFunction; -import org.apache.commons.math.complex.Complex; import org.apache.commons.math.exception.NumberIsTooLargeException; import org.apache.commons.math.exception.NoBracketingException; import org.apache.commons.math.util.FastMath; import org.junit.Assert; import org.junit.Test; -import org.junit.Ignore; /** * Testcase for Laguerre solver. diff --git a/src/test/java/org/apache/commons/math/analysis/solvers/SecantSolverTest.java b/src/test/java/org/apache/commons/math/analysis/solvers/SecantSolverTest.java index 0b0bbb316..7aaf5cf33 100644 --- a/src/test/java/org/apache/commons/math/analysis/solvers/SecantSolverTest.java +++ b/src/test/java/org/apache/commons/math/analysis/solvers/SecantSolverTest.java @@ -16,7 +16,6 @@ */ package org.apache.commons.math.analysis.solvers; -import org.apache.commons.math.analysis.MonitoredFunction; import org.apache.commons.math.analysis.QuinticFunction; import org.apache.commons.math.analysis.SinFunction; import org.apache.commons.math.analysis.UnivariateRealFunction; diff --git a/src/test/java/org/apache/commons/math/analysis/solvers/UnivariateRealSolverUtilsTest.java b/src/test/java/org/apache/commons/math/analysis/solvers/UnivariateRealSolverUtilsTest.java index ce6002d7d..ddc42d2aa 100644 --- a/src/test/java/org/apache/commons/math/analysis/solvers/UnivariateRealSolverUtilsTest.java +++ b/src/test/java/org/apache/commons/math/analysis/solvers/UnivariateRealSolverUtilsTest.java @@ -17,7 +17,6 @@ package org.apache.commons.math.analysis.solvers; -import org.apache.commons.math.MathException; import org.apache.commons.math.analysis.SinFunction; import org.apache.commons.math.analysis.QuinticFunction; import org.apache.commons.math.analysis.UnivariateRealFunction; diff --git a/src/test/java/org/apache/commons/math/linear/ArrayRealVectorTest.java b/src/test/java/org/apache/commons/math/linear/ArrayRealVectorTest.java index a4e38d74f..f7bee1273 100644 --- a/src/test/java/org/apache/commons/math/linear/ArrayRealVectorTest.java +++ b/src/test/java/org/apache/commons/math/linear/ArrayRealVectorTest.java @@ -26,11 +26,8 @@ import org.apache.commons.math.analysis.UnivariateRealFunction; import org.apache.commons.math.util.FastMath; import org.apache.commons.math.exception.OutOfRangeException; import org.apache.commons.math.analysis.function.Abs; -import org.apache.commons.math.analysis.function.Acosh; import org.apache.commons.math.analysis.function.Acos; -import org.apache.commons.math.analysis.function.Asinh; import org.apache.commons.math.analysis.function.Asin; -import org.apache.commons.math.analysis.function.Atanh; import org.apache.commons.math.analysis.function.Atan; import org.apache.commons.math.analysis.function.Cbrt; import org.apache.commons.math.analysis.function.Cosh; @@ -41,7 +38,6 @@ import org.apache.commons.math.analysis.function.Inverse; import org.apache.commons.math.analysis.function.Log10; import org.apache.commons.math.analysis.function.Log1p; import org.apache.commons.math.analysis.function.Log; -import org.apache.commons.math.analysis.function.Pow; import org.apache.commons.math.analysis.function.Sinh; import org.apache.commons.math.analysis.function.Sin; import org.apache.commons.math.analysis.function.Sqrt; diff --git a/src/test/java/org/apache/commons/math/linear/SparseRealVectorTest.java b/src/test/java/org/apache/commons/math/linear/SparseRealVectorTest.java index ff480a201..490630319 100644 --- a/src/test/java/org/apache/commons/math/linear/SparseRealVectorTest.java +++ b/src/test/java/org/apache/commons/math/linear/SparseRealVectorTest.java @@ -26,11 +26,8 @@ import org.apache.commons.math.analysis.UnivariateRealFunction; import org.apache.commons.math.util.FastMath; import org.apache.commons.math.exception.OutOfRangeException; import org.apache.commons.math.analysis.function.Abs; -import org.apache.commons.math.analysis.function.Acosh; import org.apache.commons.math.analysis.function.Acos; -import org.apache.commons.math.analysis.function.Asinh; import org.apache.commons.math.analysis.function.Asin; -import org.apache.commons.math.analysis.function.Atanh; import org.apache.commons.math.analysis.function.Atan; import org.apache.commons.math.analysis.function.Cbrt; import org.apache.commons.math.analysis.function.Cosh; @@ -41,7 +38,6 @@ import org.apache.commons.math.analysis.function.Inverse; import org.apache.commons.math.analysis.function.Log10; import org.apache.commons.math.analysis.function.Log1p; import org.apache.commons.math.analysis.function.Log; -import org.apache.commons.math.analysis.function.Pow; import org.apache.commons.math.analysis.function.Sinh; import org.apache.commons.math.analysis.function.Sin; import org.apache.commons.math.analysis.function.Sqrt; diff --git a/src/test/java/org/apache/commons/math/ode/nonstiff/HighamHall54IntegratorTest.java b/src/test/java/org/apache/commons/math/ode/nonstiff/HighamHall54IntegratorTest.java index b51bce89d..d2230b79d 100644 --- a/src/test/java/org/apache/commons/math/ode/nonstiff/HighamHall54IntegratorTest.java +++ b/src/test/java/org/apache/commons/math/ode/nonstiff/HighamHall54IntegratorTest.java @@ -19,7 +19,6 @@ package org.apache.commons.math.ode.nonstiff; import junit.framework.TestCase; -import org.apache.commons.math.ConvergenceException; import org.apache.commons.math.exception.util.LocalizedFormats; import org.apache.commons.math.exception.TooManyEvaluationsException; import org.apache.commons.math.exception.MathUserException; diff --git a/src/test/java/org/apache/commons/math/optimization/MultiStartDifferentiableMultivariateVectorialOptimizerTest.java b/src/test/java/org/apache/commons/math/optimization/MultiStartDifferentiableMultivariateVectorialOptimizerTest.java index fb974d6d2..04b1a28b4 100644 --- a/src/test/java/org/apache/commons/math/optimization/MultiStartDifferentiableMultivariateVectorialOptimizerTest.java +++ b/src/test/java/org/apache/commons/math/optimization/MultiStartDifferentiableMultivariateVectorialOptimizerTest.java @@ -23,7 +23,6 @@ import static org.junit.Assert.fail; import java.io.Serializable; -import org.apache.commons.math.exception.ConvergenceException; import org.apache.commons.math.exception.MathUserException; import org.apache.commons.math.analysis.DifferentiableMultivariateVectorialFunction; import org.apache.commons.math.analysis.MultivariateMatrixFunction; diff --git a/src/test/java/org/apache/commons/math/optimization/general/GaussNewtonOptimizerTest.java b/src/test/java/org/apache/commons/math/optimization/general/GaussNewtonOptimizerTest.java index fcd9eb6fe..e38c03a2b 100644 --- a/src/test/java/org/apache/commons/math/optimization/general/GaussNewtonOptimizerTest.java +++ b/src/test/java/org/apache/commons/math/optimization/general/GaussNewtonOptimizerTest.java @@ -19,7 +19,6 @@ package org.apache.commons.math.optimization.general; import java.awt.geom.Point2D; import java.io.Serializable; -import java.util.ArrayList; import java.util.Arrays; import junit.framework.TestCase; diff --git a/src/test/java/org/apache/commons/math/optimization/general/NonLinearConjugateGradientOptimizerTest.java b/src/test/java/org/apache/commons/math/optimization/general/NonLinearConjugateGradientOptimizerTest.java index aa7c3317a..1b9ac6312 100644 --- a/src/test/java/org/apache/commons/math/optimization/general/NonLinearConjugateGradientOptimizerTest.java +++ b/src/test/java/org/apache/commons/math/optimization/general/NonLinearConjugateGradientOptimizerTest.java @@ -19,8 +19,6 @@ package org.apache.commons.math.optimization.general; import java.awt.geom.Point2D; import java.io.Serializable; -import java.util.ArrayList; - import org.apache.commons.math.analysis.DifferentiableMultivariateRealFunction; import org.apache.commons.math.analysis.MultivariateRealFunction; import org.apache.commons.math.analysis.MultivariateVectorialFunction;