remove dead code for reading old indices

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@980908 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2010-07-30 18:21:40 +00:00
parent d57ef1cf1a
commit 53f74289d5
1 changed files with 3 additions and 14 deletions

View File

@ -144,20 +144,9 @@ public final class SegmentTermEnum implements Cloneable {
termInfo.freqPointer += input.readVLong(); // read freq pointer
termInfo.proxPointer += input.readVLong(); // read prox pointer
if(format == -1){
// just read skipOffset in order to increment file pointer;
// value is never used since skipTo is switched off
if (!isIndex) {
if (termInfo.docFreq > formatM1SkipInterval) {
termInfo.skipOffset = input.readVInt();
}
}
}
else{
if (termInfo.docFreq >= skipInterval)
termInfo.skipOffset = input.readVInt();
}
if (termInfo.docFreq >= skipInterval)
termInfo.skipOffset = input.readVInt();
if (isIndex)
indexPointer += input.readVLong(); // read index pointer