From 2e54805bf56c89b0410e4fa98e48a01b0ce96444 Mon Sep 17 00:00:00 2001 From: Phil Steitz Date: Sat, 26 Jun 2004 22:08:02 +0000 Subject: [PATCH] Removed dead code. git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141334 13f79535-47bb-0310-9956-ffa450edef68 --- .../stat/inference/ChiSquareTestImpl.java | 21 +------------------ 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/src/java/org/apache/commons/math/stat/inference/ChiSquareTestImpl.java b/src/java/org/apache/commons/math/stat/inference/ChiSquareTestImpl.java index 48b634fc8..e155099cf 100644 --- a/src/java/org/apache/commons/math/stat/inference/ChiSquareTestImpl.java +++ b/src/java/org/apache/commons/math/stat/inference/ChiSquareTestImpl.java @@ -22,7 +22,7 @@ import org.apache.commons.math.distribution.ChiSquaredDistribution; /** * Implements Chi-Square test statistics defined in the {@link ChiSquareTest} interface. * - * @version $Revision: 1.9 $ $Date: 2004/06/26 21:20:21 $ + * @version $Revision: 1.10 $ $Date: 2004/06/26 22:08:02 $ */ public class ChiSquareTestImpl implements ChiSquareTest { @@ -257,25 +257,6 @@ public class ChiSquareTestImpl implements ChiSquareTest { return true; } - /** - * Returns true iff all entries of (all subarrays of) the input array are > 0. - * Returns true if the array is non-null, but empty - * - * @param in array to be tested - * @return true if all entries of the array are positive - * @throws NullPointerException if input array is null - */ - private boolean isPositive(long[][] in) { - for (int i = 0; i < in.length; i ++) { - for (int j = 0; j < in[i].length; j++) { - if (in[i][j] <= 0) { - return false; - } - } - } - return true; - } - /** * Returns true iff all entries of (all subarrays of) the input array are >= 0. * Returns true if the array is non-null, but empty