lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r1040933 - /lucene/dev/trunk/lucene/src/java/org/apache/lucene/index/IndexWriter.java
Date Wed, 01 Dec 2010 10:22:37 GMT
Author: mikemccand
Date: Wed Dec  1 10:22:37 2010
New Revision: 1040933

URL: http://svn.apache.org/viewvc?rev=1040933&view=rev
Log:
remove dead code

Modified:
    lucene/dev/trunk/lucene/src/java/org/apache/lucene/index/IndexWriter.java

Modified: lucene/dev/trunk/lucene/src/java/org/apache/lucene/index/IndexWriter.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/src/java/org/apache/lucene/index/IndexWriter.java?rev=1040933&r1=1040932&r2=1040933&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/src/java/org/apache/lucene/index/IndexWriter.java (original)
+++ lucene/dev/trunk/lucene/src/java/org/apache/lucene/index/IndexWriter.java Wed Dec  1 10:22:37
2010
@@ -657,17 +657,6 @@ public class IndexWriter implements Clos
     this.infoStream = infoStream;
   }
 
-  /**
-   * Casts current mergePolicy to LogMergePolicy, and throws
-   * an exception if the mergePolicy is not a LogMergePolicy.
-   */
-  private LogMergePolicy getLogMergePolicy() {
-    if (mergePolicy instanceof LogMergePolicy)
-      return (LogMergePolicy) mergePolicy;
-    else
-      throw new IllegalArgumentException("this method can only be called when the merge policy
is the default LogMergePolicy");
-  }
-
   CodecProvider codecs;
 
   /**



Mime
View raw message