Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

LUCENE-3622: remove unused method/dead code

Robert Muir218f7ae1dd47
diff --git a/lucene/src/java/org/apache/lucene/index/codecs/DocValuesConsumer.java b/lucene/src/java/org/apache/lucene/index/codecs/DocValuesConsumer.java
index 88a1283ce67..caf509a7f24 100644
--- a/lucene/src/java/org/apache/lucene/index/codecs/DocValuesConsumer.java
+++ b/lucene/src/java/org/apache/lucene/index/codecs/DocValuesConsumer.java
@@ -17,7 +17,6 @@ package org.apache.lucene.index.codecs;
* limitations under the License.
*/
import java.io.IOException;
-import java.util.Collection;
import org.apache.lucene.index.IndexReader;
import org.apache.lucene.index.MergeState;
@@ -78,14 +77,6 @@ public abstract class DocValuesConsumer {
*/
public abstract void finish(int docCount) throws IOException;
- /**
- * Gathers files associated with this {@link DocValuesConsumer}
- *
- * @param files
- * the of files to add the consumers files to.
- */
- public abstract void files(Collection<String> files) throws IOException;
-
/**
* Merges the given {@link org.apache.lucene.index.MergeState} into
* this {@link DocValuesConsumer}.
diff --git a/lucene/src/java/org/apache/lucene/index/codecs/lucene40/values/Bytes.java b/lucene/src/java/org/apache/lucene/index/codecs/lucene40/values/Bytes.java
index 72764cbb2fa..4a4ff759af7 100644
--- a/lucene/src/java/org/apache/lucene/index/codecs/lucene40/values/Bytes.java
+++ b/lucene/src/java/org/apache/lucene/index/codecs/lucene40/values/Bytes.java
@@ -19,7 +19,6 @@ package org.apache.lucene.index.codecs.lucene40.values;
/** Base class for specific Bytes Reader/Writer implementations */
import java.io.IOException;
-import java.util.Collection;
import java.util.Comparator;
import java.util.concurrent.atomic.AtomicLong;
@@ -309,18 +308,6 @@ public final class Bytes {
add(docID, ref);
}
}
-
- @Override
- public void files(Collection<String> files) throws IOException {
- assert datOut != null;
- files.add(IndexFileNames.segmentFileName(id, DV_SEGMENT_SUFFIX, DATA_EXTENSION));
- if (idxOut != null) { // called after flush - so this must be initialized
- // if needed or present
- final String idxFile = IndexFileNames.segmentFileName(id, DV_SEGMENT_SUFFIX,
- INDEX_EXTENSION);
- files.add(idxFile);
- }
- }
}
/**