Apache Lucene open-source search software
remove dead code
Mike McCandlessfafbb2b6c75a
diff --git a/lucene/core/src/java/org/apache/lucene/util/bkd/OfflinePointReader.java b/lucene/core/src/java/org/apache/lucene/util/bkd/OfflinePointReader.javaindex 14d714cab1f..83d863ba356 100644--- a/lucene/core/src/java/org/apache/lucene/util/bkd/OfflinePointReader.java+++ b/lucene/core/src/java/org/apache/lucene/util/bkd/OfflinePointReader.java@@ -30,7 +30,6 @@ final class OfflinePointReader implements PointReader {private final byte[] packedValue;private long ord;private int docID;- final int bytesPerDoc;OfflinePointReader(Directory tempDir, String tempFileName, int packedBytesLength, long start, long length) throws IOException {this(tempDir.openInput(tempFileName, IOContext.READONCE), packedBytesLength, start, length);@@ -38,7 +37,7 @@ final class OfflinePointReader implements PointReader {private OfflinePointReader(IndexInput in, int packedBytesLength, long start, long length) throws IOException {this.in = in;- bytesPerDoc = packedBytesLength + Long.BYTES + Integer.BYTES;+ int bytesPerDoc = packedBytesLength + Long.BYTES + Integer.BYTES;long seekFP = start * bytesPerDoc;in.seek(seekFP);this.countLeft = length;diff --git a/lucene/core/src/java/org/apache/lucene/util/bkd/OfflinePointWriter.java b/lucene/core/src/java/org/apache/lucene/util/bkd/OfflinePointWriter.javaindex f47f5675538..625e6fa2b13 100644--- a/lucene/core/src/java/org/apache/lucene/util/bkd/OfflinePointWriter.java+++ b/lucene/core/src/java/org/apache/lucene/util/bkd/OfflinePointWriter.java@@ -28,7 +28,6 @@ final class OfflinePointWriter implements PointWriter {final Directory tempDir;final IndexOutput out;final int packedBytesLength;- final int bytesPerDoc;private long count;private boolean closed;@@ -36,7 +35,6 @@ final class OfflinePointWriter implements PointWriter {this.out = tempDir.createTempOutput(tempFileNamePrefix, "bkd", IOContext.DEFAULT);this.tempDir = tempDir;this.packedBytesLength = packedBytesLength;- bytesPerDoc = packedBytesLength + Long.BYTES + Integer.BYTES;}/** Initializes on an already written/closed file, just so consumers can use {@link #getReader} to read the file. */@@ -44,7 +42,6 @@ final class OfflinePointWriter implements PointWriter {this.out = out;this.tempDir = tempDir;this.packedBytesLength = packedBytesLength;- bytesPerDoc = packedBytesLength + Long.BYTES + Integer.BYTES;this.count = count;closed = true;}