From ccabe055c5cbb0b475c032ad632f3b0cfcda0bb0 Mon Sep 17 00:00:00 2001 From: Robert Muir Date: Mon, 17 Dec 2012 21:21:27 +0000 Subject: [PATCH] remove dead code git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene4547@1423151 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/lucene/util/packed/DirectPackedReader.java | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/lucene/core/src/java/org/apache/lucene/util/packed/DirectPackedReader.java b/lucene/core/src/java/org/apache/lucene/util/packed/DirectPackedReader.java index d0f0f5d8879..009124ec675 100644 --- a/lucene/core/src/java/org/apache/lucene/util/packed/DirectPackedReader.java +++ b/lucene/core/src/java/org/apache/lucene/util/packed/DirectPackedReader.java @@ -26,20 +26,10 @@ class DirectPackedReader extends PackedInts.ReaderImpl { private final IndexInput in; private final long startPointer; - // masks[n-1] masks for bottom n bits - private final long[] masks; - public DirectPackedReader(int bitsPerValue, int valueCount, IndexInput in) { super(valueCount, bitsPerValue); this.in = in; - long v = 1; - masks = new long[bitsPerValue]; - for (int i = 0; i < bitsPerValue; i++) { - v *= 2; - masks[i] = v - 1; - } - startPointer = in.getFilePointer(); }