mirror of https://github.com/apache/lucene.git
EdgeNGramTokenFilter: Remove unused variable
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1484077 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
0679c7a88f
commit
1a7228353e
|
@ -45,7 +45,6 @@ public final class EdgeNGramTokenFilter extends TokenFilter {
|
||||||
private int tokEnd; // only used if the length changed before this filter
|
private int tokEnd; // only used if the length changed before this filter
|
||||||
private int savePosIncr;
|
private int savePosIncr;
|
||||||
private int savePosLen;
|
private int savePosLen;
|
||||||
private boolean isFirstToken = true;
|
|
||||||
|
|
||||||
private final CharTermAttribute termAtt = addAttribute(CharTermAttribute.class);
|
private final CharTermAttribute termAtt = addAttribute(CharTermAttribute.class);
|
||||||
private final OffsetAttribute offsetAtt = addAttribute(OffsetAttribute.class);
|
private final OffsetAttribute offsetAtt = addAttribute(OffsetAttribute.class);
|
||||||
|
@ -110,7 +109,6 @@ public final class EdgeNGramTokenFilter extends TokenFilter {
|
||||||
posLenAtt.setPositionLength(savePosLen);
|
posLenAtt.setPositionLength(savePosLen);
|
||||||
termAtt.copyBuffer(curTermBuffer, 0, curGramSize);
|
termAtt.copyBuffer(curTermBuffer, 0, curGramSize);
|
||||||
curGramSize++;
|
curGramSize++;
|
||||||
isFirstToken = false;
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -122,7 +120,6 @@ public final class EdgeNGramTokenFilter extends TokenFilter {
|
||||||
public void reset() throws IOException {
|
public void reset() throws IOException {
|
||||||
super.reset();
|
super.reset();
|
||||||
curTermBuffer = null;
|
curTermBuffer = null;
|
||||||
isFirstToken = true;
|
|
||||||
savePosIncr = 0;
|
savePosIncr = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue