Apache Solr open-source search software
remove dead code
Robert Muirdddbe9456d15
diff --git a/lucene/core/src/java/org/apache/lucene/index/DocInverter.java b/lucene/core/src/java/org/apache/lucene/index/DocInverter.javaindex 171a964dee3..86ce4a39f22 100644--- a/lucene/core/src/java/org/apache/lucene/index/DocInverter.java+++ b/lucene/core/src/java/org/apache/lucene/index/DocInverter.java@@ -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 DocFieldConsumer {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;