remove dead code

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1040933 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2010-12-01 10:22:37 +00:00
parent ef762e6046
commit 297b3b75c4

View File

@ -657,17 +657,6 @@ public class IndexWriter implements Closeable {
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;
/**