From abd4cfb69433e019e7ea111a1a406c66417fea34 Mon Sep 17 00:00:00 2001 From: Christine Poerschke Date: Fri, 2 Sep 2016 16:13:30 +0100 Subject: [PATCH] LUCENE-7433: remove unused LogMergePolicy.SegmentInfoAndLevel.index private member --- .../src/java/org/apache/lucene/index/LogMergePolicy.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lucene/core/src/java/org/apache/lucene/index/LogMergePolicy.java b/lucene/core/src/java/org/apache/lucene/index/LogMergePolicy.java index 11869dc2477..4d0ce51d261 100644 --- a/lucene/core/src/java/org/apache/lucene/index/LogMergePolicy.java +++ b/lucene/core/src/java/org/apache/lucene/index/LogMergePolicy.java @@ -429,12 +429,10 @@ public abstract class LogMergePolicy extends MergePolicy { private static class SegmentInfoAndLevel implements Comparable { SegmentCommitInfo info; float level; - int index; - public SegmentInfoAndLevel(SegmentCommitInfo info, float level, int index) { + public SegmentInfoAndLevel(SegmentCommitInfo info, float level) { this.info = info; this.level = level; - this.index = index; } // Sorts largest to smallest @@ -475,7 +473,7 @@ public abstract class LogMergePolicy extends MergePolicy { size = 1; } - final SegmentInfoAndLevel infoLevel = new SegmentInfoAndLevel(info, (float) Math.log(size)/norm, i); + final SegmentInfoAndLevel infoLevel = new SegmentInfoAndLevel(info, (float) Math.log(size)/norm); levels.add(infoLevel); if (verbose(writer)) {