You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mahout.apache.org by sr...@apache.org on 2010/04/03 14:36:40 UTC
svn commit: r930512 - in /lucene/mahout/trunk/collections: pom.xml
src/main/java/org/apache/mahout/math/map/PrimeFinder.java
Author: srowen
Date: Sat Apr 3 12:36:36 2010
New Revision: 930512
URL: http://svn.apache.org/viewvc?rev=930512&view=rev
Log:
MAHOUT-361 Remove logging from collections -- uncontroversial it seems
Modified:
lucene/mahout/trunk/collections/pom.xml
lucene/mahout/trunk/collections/src/main/java/org/apache/mahout/math/map/PrimeFinder.java
Modified: lucene/mahout/trunk/collections/pom.xml
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/collections/pom.xml?rev=930512&r1=930511&r2=930512&view=diff
==============================================================================
--- lucene/mahout/trunk/collections/pom.xml (original)
+++ lucene/mahout/trunk/collections/pom.xml Sat Apr 3 12:36:36 2010
@@ -93,19 +93,6 @@
<dependencies>
<dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-api</artifactId>
- <version>1.5.8</version>
- </dependency>
-
- <dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-jcl</artifactId>
- <version>1.5.8</version>
- <scope>test</scope>
- </dependency>
-
- <dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
Modified: lucene/mahout/trunk/collections/src/main/java/org/apache/mahout/math/map/PrimeFinder.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/collections/src/main/java/org/apache/mahout/math/map/PrimeFinder.java?rev=930512&r1=930511&r2=930512&view=diff
==============================================================================
--- lucene/mahout/trunk/collections/src/main/java/org/apache/mahout/math/map/PrimeFinder.java (original)
+++ lucene/mahout/trunk/collections/src/main/java/org/apache/mahout/math/map/PrimeFinder.java Sat Apr 3 12:36:36 2010
@@ -19,9 +19,6 @@
package org.apache.mahout.math.map;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
import java.util.Arrays;
/**
@@ -40,8 +37,6 @@ import java.util.Arrays;
*/
public class PrimeFinder {
- private static final Logger log = LoggerFactory.getLogger(PrimeFinder.class);
-
/** The largest prime this class can generate; currently equal to <tt>Integer.MAX_VALUE</tt>. */
public static final int largestPrime = Integer.MAX_VALUE; //yes, it is prime.
@@ -167,7 +162,6 @@ public class PrimeFinder {
if (deviation > maxDeviation) {
maxDeviation = deviation;
- log.info("new maxdev @{}@dev={}", i, maxDeviation);
}
accDeviation += deviation;
@@ -175,8 +169,5 @@ public class PrimeFinder {
long width = 1 + (long) to - (long) from;
double meanDeviation = accDeviation / width;
- log.info("Statistics for [{},{}] are as follows", from, to);
- log.info("meanDeviation = {} %", (float) meanDeviation * 100);
- log.info("maxDeviation = {} %", (float) maxDeviation * 100);
}
}