mirror of
https://github.com/apache/lucene.git
synced 2025-02-08 19:15:06 +00:00
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:
parent
ef762e6046
commit
297b3b75c4
@ -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;
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user