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:
Adrien Grand 2013-05-18 09:27:53 +00:00
parent 0679c7a88f
commit 1a7228353e
1 changed files with 0 additions and 3 deletions

View File

@ -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;
} }
} }