Skip to content

Apache Lucene open-source search software

remove dead code

Michael McCandless7fd7610b7ac0
diff --git a/lucene/core/src/test/org/apache/lucene/util/fst/TestFSTs.java b/lucene/core/src/test/org/apache/lucene/util/fst/TestFSTs.java
index 85ac02ff561..1e38b9a9d5e 100644
--- a/lucene/core/src/test/org/apache/lucene/util/fst/TestFSTs.java
+++ b/lucene/core/src/test/org/apache/lucene/util/fst/TestFSTs.java
@@ -1096,13 +1096,6 @@ public class TestFSTs extends LuceneTestCase {
// file, up until a time limit
public void testRealTerms() throws Exception {
- // TODO: is this necessary? we use the annotation...
- final String defaultFormat = _TestUtil.getPostingsFormat("abracadabra");
- if (defaultFormat.equals("SimpleText") || defaultFormat.equals("Memory")) {
- // no
- Codec.setDefault(_TestUtil.alwaysPostingsFormat(new Lucene40PostingsFormat()));
- }
-
final LineFileDocs docs = new LineFileDocs(random(), true);
final int RUN_TIME_MSEC = atLeast(500);
final IndexWriterConfig conf = newIndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer(random())).setMaxBufferedDocs(-1).setRAMBufferSizeMB(64);