From fafbb2b6c75a8d0ee753f4a0d9936760d46494ce Mon Sep 17 00:00:00 2001 From: Mike McCandless Date: Fri, 11 Mar 2016 05:34:19 -0500 Subject: [PATCH] remove dead code --- .../java/org/apache/lucene/util/bkd/OfflinePointReader.java | 3 +-- .../java/org/apache/lucene/util/bkd/OfflinePointWriter.java | 3 --- 2 files changed, 1 insertion(+), 5 deletions(-) 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.java index 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.java index 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; }