LUCENE-7433: remove unused LogMergePolicy.SegmentInfoAndLevel.index private member

This commit is contained in:
Christine Poerschke 2016-09-02 16:13:30 +01:00
parent c56d832349
commit abd4cfb694
1 changed files with 2 additions and 4 deletions

View File

@ -429,12 +429,10 @@ public abstract class LogMergePolicy extends MergePolicy {
private static class SegmentInfoAndLevel implements Comparable<SegmentInfoAndLevel> { private static class SegmentInfoAndLevel implements Comparable<SegmentInfoAndLevel> {
SegmentCommitInfo info; SegmentCommitInfo info;
float level; float level;
int index;
public SegmentInfoAndLevel(SegmentCommitInfo info, float level, int index) { public SegmentInfoAndLevel(SegmentCommitInfo info, float level) {
this.info = info; this.info = info;
this.level = level; this.level = level;
this.index = index;
} }
// Sorts largest to smallest // Sorts largest to smallest
@ -475,7 +473,7 @@ public abstract class LogMergePolicy extends MergePolicy {
size = 1; 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); levels.add(infoLevel);
if (verbose(writer)) { if (verbose(writer)) {