From e168bfa2f59dc8ef6fa42fbf9a22dfdf6230d6f6 Mon Sep 17 00:00:00 2001 From: Robert Muir Date: Fri, 20 Feb 2015 18:22:51 +0000 Subject: [PATCH] LUCENE-6266: remove deprecations git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1661177 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/lucene/index/SegmentCommitInfo.java | 9 --------- .../org/apache/lucene/index/SegmentInfo.java | 11 ----------- .../org/apache/lucene/index/SegmentInfos.java | 18 ------------------ 3 files changed, 38 deletions(-) diff --git a/lucene/core/src/java/org/apache/lucene/index/SegmentCommitInfo.java b/lucene/core/src/java/org/apache/lucene/index/SegmentCommitInfo.java index 994ffd1d0ca..7f7320bd799 100644 --- a/lucene/core/src/java/org/apache/lucene/index/SegmentCommitInfo.java +++ b/lucene/core/src/java/org/apache/lucene/index/SegmentCommitInfo.java @@ -317,15 +317,6 @@ public class SegmentCommitInfo { } this.delCount = delCount; } - - /** - * Returns a description of this segment. - * @deprecated Use {@link #toString(int)} instead. - */ - @Deprecated - public String toString(Directory dir, int pendingDelCount) { - return toString(pendingDelCount); - } /** Returns a description of this segment. */ public String toString(int pendingDelCount) { diff --git a/lucene/core/src/java/org/apache/lucene/index/SegmentInfo.java b/lucene/core/src/java/org/apache/lucene/index/SegmentInfo.java index 2d445356965..49197c94fc6 100644 --- a/lucene/core/src/java/org/apache/lucene/index/SegmentInfo.java +++ b/lucene/core/src/java/org/apache/lucene/index/SegmentInfo.java @@ -171,17 +171,6 @@ public final class SegmentInfo { public String toString() { return toString(0); } - - - /** - * Used for debugging. - * - * @deprecated Use {@link #toString(int)} instead. - */ - @Deprecated - public String toString(Directory dir, int delCount) { - return toString(delCount); - } /** Used for debugging. Format may suddenly change. * diff --git a/lucene/core/src/java/org/apache/lucene/index/SegmentInfos.java b/lucene/core/src/java/org/apache/lucene/index/SegmentInfos.java index 5a211953ae9..65c4b90999b 100644 --- a/lucene/core/src/java/org/apache/lucene/index/SegmentInfos.java +++ b/lucene/core/src/java/org/apache/lucene/index/SegmentInfos.java @@ -621,15 +621,6 @@ public final class SegmentInfos implements Cloneable, Iterable files(Directory dir, boolean includeSegmentsFile) throws IOException { - return files(includeSegmentsFile); - } /** Returns all file names referenced by SegmentInfo. * The returned collection is recomputed on each @@ -686,15 +677,6 @@ public final class SegmentInfos implements Cloneable, Iterable