lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rm...@apache.org
Subject svn commit: r1244925 - /lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/index/DocInverter.java
Date Thu, 16 Feb 2012 10:43:26 GMT
Author: rmuir
Date: Thu Feb 16 10:43:26 2012
New Revision: 1244925

URL: http://svn.apache.org/viewvc?rev=1244925&view=rev
Log:
remove dead code

Modified:
    lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/index/DocInverter.java

Modified: lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/index/DocInverter.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/index/DocInverter.java?rev=1244925&r1=1244924&r2=1244925&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/index/DocInverter.java (original)
+++ lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/index/DocInverter.java Thu Feb
16 10:43:26 2012
@@ -21,11 +21,6 @@ import java.io.IOException;
 import java.util.HashMap;
 import java.util.Map;
 
-import org.apache.lucene.analysis.tokenattributes.CharTermAttribute;
-import org.apache.lucene.analysis.tokenattributes.OffsetAttribute;
-import org.apache.lucene.util.AttributeSource;
-
-
 /** This is a DocFieldConsumer that inverts each field,
  *  separately, from a Document, and accepts a
  *  InvertedTermsConsumer to process those terms. */
@@ -37,23 +32,6 @@ final class DocInverter extends DocField
 
   final DocumentsWriterPerThread.DocState docState;
 
-  final SingleTokenAttributeSource singleToken = new SingleTokenAttributeSource();
-
-  static class SingleTokenAttributeSource extends AttributeSource {
-    final CharTermAttribute termAttribute;
-    final OffsetAttribute offsetAttribute;
-
-    private SingleTokenAttributeSource() {
-      termAttribute = addAttribute(CharTermAttribute.class);
-      offsetAttribute = addAttribute(OffsetAttribute.class);
-    }
-
-    public void reinit(String stringValue, int startOffset,  int endOffset) {
-      termAttribute.setEmpty().append(stringValue);
-      offsetAttribute.setOffset(startOffset, endOffset);
-    }
-  }
-
   public DocInverter(DocumentsWriterPerThread.DocState docState, InvertedDocConsumer consumer,
InvertedDocEndConsumer endConsumer) {
     this.docState = docState;
     this.consumer = consumer;



Mime
View raw message