You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by rm...@apache.org on 2012/05/21 16:09:04 UTC

svn commit: r1341037 - /lucene/dev/branches/lucene4055/lucene/core/src/java/org/apache/lucene/index/SegmentInfos.java

Author: rmuir
Date: Mon May 21 14:09:03 2012
New Revision: 1341037

URL: http://svn.apache.org/viewvc?rev=1341037&view=rev
Log:
LUCENE-4055: remove dead code

Modified:
    lucene/dev/branches/lucene4055/lucene/core/src/java/org/apache/lucene/index/SegmentInfos.java

Modified: lucene/dev/branches/lucene4055/lucene/core/src/java/org/apache/lucene/index/SegmentInfos.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/lucene4055/lucene/core/src/java/org/apache/lucene/index/SegmentInfos.java?rev=1341037&r1=1341036&r2=1341037&view=diff
==============================================================================
--- lucene/dev/branches/lucene4055/lucene/core/src/java/org/apache/lucene/index/SegmentInfos.java (original)
+++ lucene/dev/branches/lucene4055/lucene/core/src/java/org/apache/lucene/index/SegmentInfos.java Mon May 21 14:09:03 2012
@@ -112,28 +112,16 @@ public final class SegmentInfos implemen
                                // there was an IOException that had interrupted a commit
 
   public Map<String,String> userData = Collections.<String,String>emptyMap();       // Opaque Map<String, String> that user can specify during IndexWriter.commit
-
-  private int format;
   
   private List<SegmentInfo> segments = new ArrayList<SegmentInfo>();
   private Set<SegmentInfo> segmentSet = new HashSet<SegmentInfo>();
   private transient List<SegmentInfo> cachedUnmodifiableList;
   
-  private Codec codecFormat;
-  
   /**
    * If non-null, information about loading segments_N files
    * will be printed here.  @see #setInfoStream.
    */
   private static PrintStream infoStream = null;
-  
-  public void setFormat(int format) {
-    this.format = format;
-  }
-
-  public int getFormat() {
-    return format;
-  }
 
   public SegmentInfo info(int i) {
     return segments.get(i);
@@ -971,7 +959,6 @@ public final class SegmentInfos implemen
   void replace(SegmentInfos other) {
     rollbackSegmentInfos(other.asList());
     lastGeneration = other.lastGeneration;
-    format = other.format;
   }
 
   /** Returns sum of all segment's docCounts.  Note that
@@ -1049,14 +1036,6 @@ public final class SegmentInfos implemen
     this.addAll(infos);
   }
   
-  /**
-   * Returns the codec used to decode this SegmentInfos from disk 
-   * @lucene.internal
-   */
-  Codec codecFormat() {
-    return codecFormat;
-  }
-  
   /** Returns an <b>unmodifiable</b> {@link Iterator} of contained segments in order. */
   // @Override (comment out until Java 6)
   public Iterator<SegmentInfo> iterator() {