Repository: commons-math Updated Branches: refs/heads/master bd5afc0b5 -> 2ae6f996e
[MATH-964] Remove unused class PollardRho. Project: http://git-wip-us.apache.org/repos/asf/commons-math/repo Commit: http://git-wip-us.apache.org/repos/asf/commons-math/commit/2ae6f996 Tree: http://git-wip-us.apache.org/repos/asf/commons-math/tree/2ae6f996 Diff: http://git-wip-us.apache.org/repos/asf/commons-math/diff/2ae6f996 Branch: refs/heads/master Commit: 2ae6f996ec443cec16165bb3086db5da61f4a1e1 Parents: bd5afc0 Author: Thomas Neidhart <thomas.neidh...@gmail.com> Authored: Fri May 1 15:44:08 2015 +0200 Committer: Thomas Neidhart <thomas.neidh...@gmail.com> Committed: Fri May 1 15:44:08 2015 +0200 ---------------------------------------------------------------------- src/changes/changes.xml | 3 +++ src/main/java/org/apache/commons/math4/primes/Primes.java | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/commons-math/blob/2ae6f996/src/changes/changes.xml ---------------------------------------------------------------------- diff --git a/src/changes/changes.xml b/src/changes/changes.xml index 649258f..a342025 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -54,6 +54,9 @@ If the output is not quite correct, check for invisible trailing spaces! </release> <release version="4.0" date="XXXX-XX-XX" description=""> + <action dev="tn" type="fix" issue="MATH-964"> + Removed unused package private class PollardRho in package primes. + </action> <action dev="tn" type="fix" issue="MATH-1221"> Improve performance of "ZipfDistribution" by caching the nth generalized harmonic. </action> http://git-wip-us.apache.org/repos/asf/commons-math/blob/2ae6f996/src/main/java/org/apache/commons/math4/primes/Primes.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/primes/Primes.java b/src/main/java/org/apache/commons/math4/primes/Primes.java index 7dbb883..db75ccc 100644 --- a/src/main/java/org/apache/commons/math4/primes/Primes.java +++ b/src/main/java/org/apache/commons/math4/primes/Primes.java @@ -119,9 +119,6 @@ public class Primes { if (n < 2) { throw new MathIllegalArgumentException(LocalizedFormats.NUMBER_TOO_SMALL, n, 2); } - // slower than trial div unless we do an awful lot of computation - // (then it finally gets JIT-compiled efficiently - // List<Integer> out = PollardRho.primeFactors(n); return SmallPrimes.trialDivision(n); }