remove redundant code

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1656290 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2015-02-01 13:28:08 +00:00
parent 1529c57ca1
commit 7f34c90908
1 changed files with 0 additions and 10 deletions

View File

@ -257,16 +257,6 @@ public final class BlockTreeTermsWriter extends FieldsConsumer {
{
validateSettings(minItemsInBlock, maxItemsInBlock);
if (minItemsInBlock <= 1) {
throw new IllegalArgumentException("minItemsInBlock must be >= 2; got " + minItemsInBlock);
}
if (minItemsInBlock > maxItemsInBlock) {
throw new IllegalArgumentException("maxItemsInBlock must be >= minItemsInBlock; got maxItemsInBlock=" + maxItemsInBlock + " minItemsInBlock=" + minItemsInBlock);
}
if (maxItemsInBlock < 2*(minItemsInBlock-1)) {
throw new IllegalArgumentException("maxItemsInBlock must be at least 2*(minItemsInBlock-1); got maxItemsInBlock=" + maxItemsInBlock + " minItemsInBlock=" + minItemsInBlock);
}
this.maxDoc = state.segmentInfo.getDocCount();
this.fieldInfos = state.fieldInfos;
this.minItemsInBlock = minItemsInBlock;