LUCENE-6813: remove newly deceased code

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1705162 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2015-09-24 21:32:24 +00:00
parent 4fa7bac977
commit 76bf6740d1
4 changed files with 0 additions and 41 deletions

View File

@ -27,8 +27,6 @@ import java.util.Arrays;
import java.util.Comparator;
import java.util.concurrent.atomic.AtomicBoolean;
import org.apache.lucene.util.IOUtils;
import org.apache.lucene.util.LuceneTestCase;
import org.apache.lucene.util.OfflineSorter.BufferSize;
import org.apache.lucene.util.OfflineSorter.ByteSequencesWriter;
import org.apache.lucene.util.OfflineSorter.SortInfo;

View File

@ -443,19 +443,6 @@ class BKDTreeWriter {
return indexFP;
}
// Called only from assert
private boolean directoryIsEmpty(Path in) {
try (DirectoryStream<Path> dir = Files.newDirectoryStream(in)) {
for (Path path : dir) {
assert false: "dir=" + in + " still has file=" + path;
return false;
}
} catch (IOException ioe) {
// Just ignore: we are only called from assert
}
return true;
}
/** Sliced reference to points in an OfflineSorter.ByteSequencesWriter file. */
private static final class PathSlice {
final LatLonWriter writer;

View File

@ -386,19 +386,6 @@ class RangeTreeWriter {
return indexFP;
}
// Called only from assert
private boolean directoryIsEmpty(Path in) {
try (DirectoryStream<Path> dir = Files.newDirectoryStream(in)) {
for (Path path : dir) {
assert false: "dir=" + in + " still has file=" + path;
return false;
}
} catch (IOException ioe) {
// Just ignore: we are only called from assert
}
return true;
}
/** Sliced reference to points in an OfflineSorter.ByteSequencesWriter file. */
private static final class PathSlice {
final SliceWriter writer;

View File

@ -452,19 +452,6 @@ class BKD3DTreeWriter {
return indexFP;
}
// Called only from assert
private boolean directoryIsEmpty(Path in) {
try (DirectoryStream<Path> dir = Files.newDirectoryStream(in)) {
for (Path path : dir) {
assert false: "dir=" + in + " still has file=" + path;
return false;
}
} catch (IOException ioe) {
// Just ignore: we are only called from assert
}
return true;
}
/** Sliced reference to points in an OfflineSorter.ByteSequencesWriter file. */
private static final class PathSlice {
final Writer writer;