mirror of https://github.com/apache/lucene.git
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:
parent
d57ef1cf1a
commit
53f74289d5
|
@ -144,19 +144,8 @@ 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
|
||||
|
|
Loading…
Reference in New Issue