Skip to content

Commit

Permalink
Code cleanup: Remove unused imports
Browse files Browse the repository at this point in the history
Remove unused imports which contribute nothing to the code, and just
take up screen real estate.
  • Loading branch information
mureinik committed Sep 30, 2020
1 parent 450dadf commit 2d14b51
Show file tree
Hide file tree
Showing 307 changed files with 0 additions and 822 deletions.
Expand Up @@ -19,7 +19,6 @@
import org.apache.commons.numbers.arrays.LinearCombination;
import org.apache.commons.rng.UniformRandomProvider;
import org.apache.commons.rng.simple.RandomSource;
import org.apache.commons.math4.RealFieldElement;
import org.apache.commons.math4.util.FastMath;
import org.apache.commons.math4.util.MathArrays;
import org.junit.Assert;
Expand Down
1 change: 0 additions & 1 deletion src/test/java/org/apache/commons/math4/TestUtils.java
Expand Up @@ -26,7 +26,6 @@
import org.apache.commons.numbers.complex.Complex;
import org.apache.commons.numbers.core.Precision;
import org.apache.commons.statistics.distribution.ContinuousDistribution;
import org.apache.commons.math4.FieldElement;
import org.apache.commons.math4.complex.ComplexFormat;
import org.apache.commons.math4.linear.FieldMatrix;
import org.apache.commons.math4.linear.RealMatrix;
Expand Down
Expand Up @@ -21,7 +21,6 @@
import java.util.HashMap;
import java.util.Map;

import org.apache.commons.math4.analysis.differentiation.DSCompiler;
import org.apache.commons.math4.exception.DimensionMismatchException;
import org.apache.commons.numbers.combinatorics.BinomialCoefficient;
import org.junit.Assert;
Expand Down
Expand Up @@ -22,7 +22,6 @@

import org.apache.commons.math4.ExtendedFieldElementAbstractTest;
import org.apache.commons.math4.TestUtils;
import org.apache.commons.math4.analysis.differentiation.DerivativeStructure;
import org.apache.commons.math4.analysis.polynomials.PolynomialFunction;
import org.apache.commons.math4.exception.DimensionMismatchException;
import org.apache.commons.math4.exception.NumberIsTooLargeException;
Expand Down
Expand Up @@ -20,7 +20,6 @@
import org.apache.commons.math4.analysis.UnivariateFunction;
import org.apache.commons.math4.analysis.differentiation.DerivativeStructure;
import org.apache.commons.math4.analysis.differentiation.UnivariateDifferentiableFunction;
import org.apache.commons.math4.analysis.function.Gaussian;
import org.apache.commons.math4.exception.DimensionMismatchException;
import org.apache.commons.math4.exception.NotStrictlyPositiveException;
import org.apache.commons.math4.exception.NullArgumentException;
Expand Down
Expand Up @@ -19,7 +19,6 @@

import org.apache.commons.math4.analysis.UnivariateFunction;
import org.apache.commons.math4.analysis.differentiation.DerivativeStructure;
import org.apache.commons.math4.analysis.function.HarmonicOscillator;
import org.apache.commons.math4.exception.DimensionMismatchException;
import org.apache.commons.math4.exception.NullArgumentException;
import org.apache.commons.math4.util.FastMath;
Expand Down
Expand Up @@ -19,8 +19,6 @@

import org.apache.commons.math4.analysis.UnivariateFunction;
import org.apache.commons.math4.analysis.differentiation.DerivativeStructure;
import org.apache.commons.math4.analysis.function.Logistic;
import org.apache.commons.math4.analysis.function.Sigmoid;
import org.apache.commons.math4.exception.DimensionMismatchException;
import org.apache.commons.math4.exception.NotStrictlyPositiveException;
import org.apache.commons.math4.exception.NullArgumentException;
Expand Down
Expand Up @@ -21,8 +21,6 @@
import org.apache.commons.math4.analysis.UnivariateFunction;
import org.apache.commons.math4.analysis.differentiation.DerivativeStructure;
import org.apache.commons.math4.analysis.differentiation.UnivariateDifferentiableFunction;
import org.apache.commons.math4.analysis.function.Logit;
import org.apache.commons.math4.analysis.function.Sigmoid;
import org.apache.commons.math4.exception.DimensionMismatchException;
import org.apache.commons.math4.exception.NullArgumentException;
import org.apache.commons.math4.exception.OutOfRangeException;
Expand Down
Expand Up @@ -19,7 +19,6 @@

import org.apache.commons.math4.analysis.UnivariateFunction;
import org.apache.commons.math4.analysis.differentiation.DerivativeStructure;
import org.apache.commons.math4.analysis.function.Sigmoid;
import org.apache.commons.math4.exception.DimensionMismatchException;
import org.apache.commons.math4.exception.NullArgumentException;
import org.junit.Assert;
Expand Down
Expand Up @@ -18,7 +18,6 @@
package org.apache.commons.math4.analysis.function;

import org.apache.commons.math4.analysis.UnivariateFunction;
import org.apache.commons.math4.analysis.function.StepFunction;
import org.apache.commons.math4.exception.DimensionMismatchException;
import org.apache.commons.math4.exception.NoDataException;
import org.apache.commons.math4.exception.NonMonotonicSequenceException;
Expand Down
Expand Up @@ -19,8 +19,6 @@
import org.apache.commons.math4.analysis.QuinticFunction;
import org.apache.commons.math4.analysis.UnivariateFunction;
import org.apache.commons.math4.analysis.function.Sin;
import org.apache.commons.math4.analysis.integration.MidPointIntegrator;
import org.apache.commons.math4.analysis.integration.UnivariateIntegrator;
import org.apache.commons.math4.exception.NumberIsTooLargeException;
import org.apache.commons.math4.exception.NumberIsTooSmallException;
import org.apache.commons.math4.util.FastMath;
Expand Down
Expand Up @@ -19,8 +19,6 @@
import org.apache.commons.math4.analysis.QuinticFunction;
import org.apache.commons.math4.analysis.UnivariateFunction;
import org.apache.commons.math4.analysis.function.Sin;
import org.apache.commons.math4.analysis.integration.RombergIntegrator;
import org.apache.commons.math4.analysis.integration.UnivariateIntegrator;
import org.apache.commons.math4.exception.NumberIsTooLargeException;
import org.apache.commons.math4.exception.NumberIsTooSmallException;
import org.apache.commons.math4.util.FastMath;
Expand Down
Expand Up @@ -21,8 +21,6 @@
import org.apache.commons.math4.analysis.function.Identity;
import org.apache.commons.math4.analysis.function.Inverse;
import org.apache.commons.math4.analysis.function.Sin;
import org.apache.commons.math4.analysis.integration.SimpsonIntegrator;
import org.apache.commons.math4.analysis.integration.UnivariateIntegrator;
import org.apache.commons.math4.exception.NumberIsTooLargeException;
import org.apache.commons.math4.exception.NumberIsTooSmallException;
import org.apache.commons.math4.util.FastMath;
Expand Down
Expand Up @@ -19,8 +19,6 @@
import org.apache.commons.math4.analysis.QuinticFunction;
import org.apache.commons.math4.analysis.UnivariateFunction;
import org.apache.commons.math4.analysis.function.Sin;
import org.apache.commons.math4.analysis.integration.TrapezoidIntegrator;
import org.apache.commons.math4.analysis.integration.UnivariateIntegrator;
import org.apache.commons.math4.exception.NumberIsTooLargeException;
import org.apache.commons.math4.exception.NumberIsTooSmallException;
import org.apache.commons.math4.util.FastMath;
Expand Down
Expand Up @@ -26,7 +26,6 @@
import java.util.concurrent.ExecutionException;
import java.util.concurrent.atomic.AtomicInteger;

import org.apache.commons.math4.analysis.integration.gauss.BaseRuleFactory;
import org.apache.commons.math4.util.Pair;
import org.junit.Test;
import org.junit.Assert;
Expand Down
Expand Up @@ -18,7 +18,6 @@

import org.apache.commons.math4.analysis.UnivariateFunction;
import org.apache.commons.math4.analysis.function.Constant;
import org.apache.commons.math4.analysis.integration.gauss.GaussIntegrator;
import org.apache.commons.math4.util.Pair;
import org.junit.Test;
import org.junit.Assert;
Expand Down
Expand Up @@ -17,7 +17,6 @@
package org.apache.commons.math4.analysis.integration.gauss;

import org.apache.commons.math4.analysis.function.Power;
import org.apache.commons.math4.analysis.integration.gauss.GaussIntegrator;
import org.apache.commons.math4.util.FastMath;
import org.junit.Test;
import org.junit.Assert;
Expand Down
Expand Up @@ -22,8 +22,6 @@
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import org.junit.runners.Parameterized.Parameters;
import org.apache.commons.math4.analysis.integration.gauss.GaussIntegratorFactory;
import org.apache.commons.math4.analysis.integration.gauss.HermiteRuleFactory;
import org.apache.commons.math4.util.FastMath;

/**
Expand Down
Expand Up @@ -17,9 +17,6 @@
package org.apache.commons.math4.analysis.integration.gauss;

import org.apache.commons.math4.analysis.UnivariateFunction;
import org.apache.commons.math4.analysis.integration.gauss.GaussIntegrator;
import org.apache.commons.math4.analysis.integration.gauss.GaussIntegratorFactory;
import org.apache.commons.math4.analysis.integration.gauss.HermiteRuleFactory;
import org.apache.commons.math4.util.FastMath;
import org.junit.Test;
import org.junit.Assert;
Expand Down
Expand Up @@ -19,8 +19,6 @@
import java.util.ArrayList;
import java.util.Collection;

import org.apache.commons.math4.analysis.integration.gauss.GaussIntegratorFactory;
import org.apache.commons.math4.analysis.integration.gauss.LegendreHighPrecisionRuleFactory;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import org.junit.runners.Parameterized.Parameters;
Expand Down
Expand Up @@ -20,9 +20,6 @@
import org.apache.commons.math4.analysis.function.Cos;
import org.apache.commons.math4.analysis.function.Inverse;
import org.apache.commons.math4.analysis.function.Log;
import org.apache.commons.math4.analysis.integration.gauss.GaussIntegrator;
import org.apache.commons.math4.analysis.integration.gauss.GaussIntegratorFactory;
import org.apache.commons.math4.analysis.integration.gauss.LegendreHighPrecisionRuleFactory;
import org.junit.Test;
import org.junit.Assert;

Expand Down
Expand Up @@ -19,8 +19,6 @@
import java.util.ArrayList;
import java.util.Collection;

import org.apache.commons.math4.analysis.integration.gauss.GaussIntegratorFactory;
import org.apache.commons.math4.analysis.integration.gauss.LegendreRuleFactory;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import org.junit.runners.Parameterized.Parameters;
Expand Down
Expand Up @@ -20,9 +20,6 @@
import org.apache.commons.math4.analysis.function.Cos;
import org.apache.commons.math4.analysis.function.Inverse;
import org.apache.commons.math4.analysis.function.Log;
import org.apache.commons.math4.analysis.integration.gauss.GaussIntegrator;
import org.apache.commons.math4.analysis.integration.gauss.GaussIntegratorFactory;
import org.apache.commons.math4.analysis.integration.gauss.LegendreRuleFactory;
import org.junit.Test;
import org.junit.Assert;

Expand Down
Expand Up @@ -19,8 +19,6 @@
import org.apache.commons.math4.analysis.UnivariateFunction;
import org.apache.commons.math4.analysis.function.Expm1;
import org.apache.commons.math4.analysis.function.Sin;
import org.apache.commons.math4.analysis.interpolation.DividedDifferenceInterpolator;
import org.apache.commons.math4.analysis.interpolation.UnivariateInterpolator;
import org.apache.commons.math4.exception.NonMonotonicSequenceException;
import org.apache.commons.math4.util.FastMath;
import org.junit.Assert;
Expand Down
Expand Up @@ -18,7 +18,6 @@

import java.util.Random;

import org.apache.commons.math4.analysis.interpolation.FieldHermiteInterpolator;
import org.apache.commons.math4.analysis.polynomials.PolynomialFunction;
import org.apache.commons.math4.dfp.Dfp;
import org.apache.commons.math4.dfp.DfpField;
Expand Down
Expand Up @@ -19,7 +19,6 @@
import java.util.Random;

import org.apache.commons.math4.analysis.differentiation.DerivativeStructure;
import org.apache.commons.math4.analysis.interpolation.HermiteInterpolator;
import org.apache.commons.math4.analysis.polynomials.PolynomialFunction;
import org.apache.commons.math4.exception.MathIllegalArgumentException;
import org.apache.commons.math4.exception.NoDataException;
Expand Down
Expand Up @@ -18,8 +18,6 @@

import org.apache.commons.math4.TestUtils;
import org.apache.commons.math4.analysis.UnivariateFunction;
import org.apache.commons.math4.analysis.interpolation.LinearInterpolator;
import org.apache.commons.math4.analysis.interpolation.UnivariateInterpolator;
import org.apache.commons.math4.analysis.polynomials.PolynomialFunction;
import org.apache.commons.math4.analysis.polynomials.PolynomialSplineFunction;
import org.apache.commons.math4.exception.DimensionMismatchException;
Expand Down
Expand Up @@ -16,7 +16,6 @@
*/
package org.apache.commons.math4.analysis.interpolation;

import org.apache.commons.math4.analysis.interpolation.LoessInterpolator;
import org.apache.commons.math4.exception.DimensionMismatchException;
import org.apache.commons.math4.exception.NoDataException;
import org.apache.commons.math4.exception.NonMonotonicSequenceException;
Expand Down
Expand Up @@ -19,8 +19,6 @@
import org.apache.commons.math4.analysis.UnivariateFunction;
import org.apache.commons.math4.analysis.function.Expm1;
import org.apache.commons.math4.analysis.function.Sin;
import org.apache.commons.math4.analysis.interpolation.NevilleInterpolator;
import org.apache.commons.math4.analysis.interpolation.UnivariateInterpolator;
import org.apache.commons.math4.exception.NonMonotonicSequenceException;
import org.apache.commons.math4.util.FastMath;
import org.junit.Assert;
Expand Down
Expand Up @@ -19,9 +19,6 @@
import java.util.Random;

import org.apache.commons.math4.analysis.UnivariateFunction;
import org.apache.commons.math4.analysis.interpolation.LinearInterpolator;
import org.apache.commons.math4.analysis.interpolation.UnivariateInterpolator;
import org.apache.commons.math4.analysis.interpolation.UnivariatePeriodicInterpolator;
import org.apache.commons.math4.exception.NonMonotonicSequenceException;
import org.apache.commons.math4.exception.NumberIsTooSmallException;
import org.apache.commons.math4.util.FastMath;
Expand Down
Expand Up @@ -16,7 +16,6 @@
*/
package org.apache.commons.math4.analysis.polynomials;

import org.apache.commons.math4.analysis.polynomials.PolynomialFunctionLagrangeForm;
import org.apache.commons.math4.exception.MathIllegalArgumentException;
import org.junit.Assert;
import org.junit.Test;
Expand Down
Expand Up @@ -17,7 +17,6 @@
package org.apache.commons.math4.analysis.polynomials;

import org.apache.commons.math4.analysis.differentiation.DerivativeStructure;
import org.apache.commons.math4.analysis.polynomials.PolynomialFunctionNewtonForm;
import org.apache.commons.math4.exception.MathIllegalArgumentException;
import org.junit.Assert;
import org.junit.Test;
Expand Down
Expand Up @@ -20,12 +20,6 @@
import org.apache.commons.math4.analysis.UnivariateFunction;
import org.apache.commons.math4.analysis.XMinus5Function;
import org.apache.commons.math4.analysis.function.Sin;
import org.apache.commons.math4.analysis.solvers.AllowedSolution;
import org.apache.commons.math4.analysis.solvers.BaseSecantSolver;
import org.apache.commons.math4.analysis.solvers.BracketedUnivariateSolver;
import org.apache.commons.math4.analysis.solvers.PegasusSolver;
import org.apache.commons.math4.analysis.solvers.UnivariateSolver;
import org.apache.commons.math4.analysis.solvers.UnivariateSolverUtils;
import org.apache.commons.math4.exception.NoBracketingException;
import org.apache.commons.math4.exception.NumberIsTooLargeException;
import org.apache.commons.math4.util.FastMath;
Expand Down
Expand Up @@ -19,7 +19,6 @@
import org.apache.commons.math4.analysis.QuinticFunction;
import org.apache.commons.math4.analysis.UnivariateFunction;
import org.apache.commons.math4.analysis.function.Sin;
import org.apache.commons.math4.analysis.solvers.BisectionSolver;
import org.apache.commons.math4.util.FastMath;
import org.junit.Assert;
import org.junit.Test;
Expand Down
Expand Up @@ -21,10 +21,6 @@
import org.apache.commons.math4.analysis.UnivariateFunction;
import org.apache.commons.math4.analysis.differentiation.DerivativeStructure;
import org.apache.commons.math4.analysis.differentiation.UnivariateDifferentiableFunction;
import org.apache.commons.math4.analysis.solvers.AllowedSolution;
import org.apache.commons.math4.analysis.solvers.BracketingNthOrderBrentSolver;
import org.apache.commons.math4.analysis.solvers.NewtonRaphsonSolver;
import org.apache.commons.math4.analysis.solvers.UnivariateSolver;
import org.apache.commons.math4.exception.NumberIsTooSmallException;
import org.apache.commons.math4.exception.TooManyEvaluationsException;
import org.junit.Assert;
Expand Down
Expand Up @@ -26,8 +26,6 @@
import org.apache.commons.math4.analysis.function.Inverse;
import org.apache.commons.math4.analysis.function.Sin;
import org.apache.commons.math4.analysis.function.Sqrt;
import org.apache.commons.math4.analysis.solvers.BrentSolver;
import org.apache.commons.math4.analysis.solvers.UnivariateSolver;
import org.apache.commons.math4.exception.NoBracketingException;
import org.apache.commons.math4.exception.NumberIsTooLargeException;
import org.apache.commons.math4.exception.TooManyEvaluationsException;
Expand Down
Expand Up @@ -18,7 +18,6 @@
package org.apache.commons.math4.analysis.solvers;

import org.apache.commons.math4.analysis.RealFieldUnivariateFunction;
import org.apache.commons.math4.analysis.solvers.AllowedSolution;
import org.apache.commons.math4.dfp.Dfp;
import org.apache.commons.math4.dfp.DfpField;
import org.apache.commons.math4.dfp.DfpMath;
Expand Down
Expand Up @@ -17,9 +17,6 @@

package org.apache.commons.math4.analysis.solvers;

import org.apache.commons.math4.analysis.solvers.IllinoisSolver;
import org.apache.commons.math4.analysis.solvers.UnivariateSolver;

/**
* Test case for {@link IllinoisSolver Illinois} solver.
*
Expand Down
Expand Up @@ -18,7 +18,6 @@

import org.apache.commons.numbers.complex.Complex;
import org.apache.commons.math4.analysis.polynomials.PolynomialFunction;
import org.apache.commons.math4.analysis.solvers.LaguerreSolver;
import org.apache.commons.math4.exception.NoBracketingException;
import org.apache.commons.math4.exception.NumberIsTooLargeException;
import org.apache.commons.math4.util.FastMath;
Expand Down
Expand Up @@ -20,8 +20,6 @@
import org.apache.commons.math4.analysis.UnivariateFunction;
import org.apache.commons.math4.analysis.function.Expm1;
import org.apache.commons.math4.analysis.function.Sin;
import org.apache.commons.math4.analysis.solvers.MullerSolver2;
import org.apache.commons.math4.analysis.solvers.UnivariateSolver;
import org.apache.commons.math4.exception.NoBracketingException;
import org.apache.commons.math4.exception.NumberIsTooLargeException;
import org.apache.commons.math4.util.FastMath;
Expand Down
Expand Up @@ -20,8 +20,6 @@
import org.apache.commons.math4.analysis.UnivariateFunction;
import org.apache.commons.math4.analysis.function.Expm1;
import org.apache.commons.math4.analysis.function.Sin;
import org.apache.commons.math4.analysis.solvers.MullerSolver;
import org.apache.commons.math4.analysis.solvers.UnivariateSolver;
import org.apache.commons.math4.exception.NoBracketingException;
import org.apache.commons.math4.exception.NumberIsTooLargeException;
import org.apache.commons.math4.util.FastMath;
Expand Down
Expand Up @@ -19,7 +19,6 @@
import org.apache.commons.math4.analysis.QuinticFunction;
import org.apache.commons.math4.analysis.differentiation.UnivariateDifferentiableFunction;
import org.apache.commons.math4.analysis.function.Sin;
import org.apache.commons.math4.analysis.solvers.NewtonRaphsonSolver;
import org.apache.commons.math4.util.FastMath;
import org.junit.Assert;
import org.junit.Test;
Expand Down
Expand Up @@ -17,9 +17,6 @@

package org.apache.commons.math4.analysis.solvers;

import org.apache.commons.math4.analysis.solvers.PegasusSolver;
import org.apache.commons.math4.analysis.solvers.UnivariateSolver;

/**
* Test case for {@link PegasusSolver Pegasus} solver.
*
Expand Down
Expand Up @@ -18,8 +18,6 @@
package org.apache.commons.math4.analysis.solvers;

import org.apache.commons.math4.analysis.UnivariateFunction;
import org.apache.commons.math4.analysis.solvers.RegulaFalsiSolver;
import org.apache.commons.math4.analysis.solvers.UnivariateSolver;
import org.apache.commons.math4.exception.ConvergenceException;
import org.apache.commons.math4.util.FastMath;
import org.junit.Test;
Expand Down
Expand Up @@ -20,8 +20,6 @@
import org.apache.commons.math4.analysis.UnivariateFunction;
import org.apache.commons.math4.analysis.function.Expm1;
import org.apache.commons.math4.analysis.function.Sin;
import org.apache.commons.math4.analysis.solvers.RiddersSolver;
import org.apache.commons.math4.analysis.solvers.UnivariateSolver;
import org.apache.commons.math4.exception.NoBracketingException;
import org.apache.commons.math4.exception.NumberIsTooLargeException;
import org.apache.commons.math4.util.FastMath;
Expand Down

0 comments on commit 2d14b51

Please sign in to comment.