mirror of https://github.com/apache/lucene.git
Clean up unused code & variables (#12994)
This commit is contained in:
parent
df6bd25ce4
commit
2a851401a1
|
@ -908,17 +908,16 @@ public class FSTCompiler<T> {
|
||||||
assert validOutput(lastOutput);
|
assert validOutput(lastOutput);
|
||||||
|
|
||||||
final T commonOutputPrefix;
|
final T commonOutputPrefix;
|
||||||
final T wordSuffix;
|
|
||||||
|
|
||||||
if (lastOutput != NO_OUTPUT) {
|
if (lastOutput != NO_OUTPUT) {
|
||||||
commonOutputPrefix = fst.outputs.common(output, lastOutput);
|
commonOutputPrefix = fst.outputs.common(output, lastOutput);
|
||||||
assert validOutput(commonOutputPrefix);
|
assert validOutput(commonOutputPrefix);
|
||||||
wordSuffix = fst.outputs.subtract(lastOutput, commonOutputPrefix);
|
T wordSuffix = fst.outputs.subtract(lastOutput, commonOutputPrefix);
|
||||||
assert validOutput(wordSuffix);
|
assert validOutput(wordSuffix);
|
||||||
parentNode.setLastOutput(input.ints[input.offset + idx - 1], commonOutputPrefix);
|
parentNode.setLastOutput(input.ints[input.offset + idx - 1], commonOutputPrefix);
|
||||||
node.prependOutput(wordSuffix);
|
node.prependOutput(wordSuffix);
|
||||||
} else {
|
} else {
|
||||||
commonOutputPrefix = wordSuffix = NO_OUTPUT;
|
commonOutputPrefix = NO_OUTPUT;
|
||||||
}
|
}
|
||||||
|
|
||||||
output = fst.outputs.subtract(output, commonOutputPrefix);
|
output = fst.outputs.subtract(output, commonOutputPrefix);
|
||||||
|
@ -1113,13 +1112,6 @@ public class FSTCompiler<T> {
|
||||||
arc.isFinal = isFinal;
|
arc.isFinal = isFinal;
|
||||||
}
|
}
|
||||||
|
|
||||||
void deleteLast(int label, Node target) {
|
|
||||||
assert numArcs > 0;
|
|
||||||
assert label == arcs[numArcs - 1].label;
|
|
||||||
assert target == arcs[numArcs - 1].target;
|
|
||||||
numArcs--;
|
|
||||||
}
|
|
||||||
|
|
||||||
void setLastOutput(int labelToMatch, T newOutput) {
|
void setLastOutput(int labelToMatch, T newOutput) {
|
||||||
assert owner.validOutput(newOutput);
|
assert owner.validOutput(newOutput);
|
||||||
assert numArcs > 0;
|
assert numArcs > 0;
|
||||||
|
|
Loading…
Reference in New Issue