Skip to content

Apache Lucene open-source search software

remove commented out nocommits

Michael McCandless2de913af11bc
diff --git a/lucene/src/test/org/apache/lucene/index/TestIndexWriter.java b/lucene/src/test/org/apache/lucene/index/TestIndexWriter.java
index ffd5c57ab66..e7d5039520c 100644
--- a/lucene/src/test/org/apache/lucene/index/TestIndexWriter.java
+++ b/lucene/src/test/org/apache/lucene/index/TestIndexWriter.java
@@ -5073,8 +5073,6 @@ public class TestIndexWriter extends LuceneTestCase {
public void testRandomStoredFields() throws IOException {
File index = _TestUtil.getTempDir("lucenerandfields");
Directory dir = FSDirectory.open(index);
- // nocommit seed
- //Random rand = newRandom(1864464794067677128L);
Random rand = newRandom();
RandomIndexWriter w = new RandomIndexWriter(rand, dir, newIndexWriterConfig(rand, TEST_VERSION_CURRENT, new MockAnalyzer()).setMaxBufferedDocs(_TestUtil.nextInt(rand, 5, 20)));
//w.w.setInfoStream(System.out);
diff --git a/lucene/src/test/org/apache/lucene/util/_TestUtil.java b/lucene/src/test/org/apache/lucene/util/_TestUtil.java
index 1aa8a815d1b..982808e7fa4 100644
--- a/lucene/src/test/org/apache/lucene/util/_TestUtil.java
+++ b/lucene/src/test/org/apache/lucene/util/_TestUtil.java
@@ -102,9 +102,6 @@ public class _TestUtil {
for (int i = 0; i < end; i++) {
int t = r.nextInt(5);
- // nocommit
- //buffer[i] = (char) nextInt(r, 0x41, 0x61);
-
if (0 == t && i < end - 1) {
// Make a surrogate pair
// High surrogate