mirror of https://github.com/apache/lucene.git
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:
parent
4fa7bac977
commit
76bf6740d1
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue