rm unneeded IF check

This commit is contained in:
Terence Parr 2013-09-09 14:47:02 -07:00
parent 90187039f0
commit 94d3c71b02
1 changed files with 1 additions and 3 deletions

View File

@ -106,9 +106,7 @@ public abstract class PredictionContext {
// If we have a parent, convert it to a PredictionContext graph // If we have a parent, convert it to a PredictionContext graph
PredictionContext parent = EMPTY; PredictionContext parent = EMPTY;
if ( outerContext.parent != null ) {
parent = PredictionContext.fromRuleContext(atn, outerContext.parent); parent = PredictionContext.fromRuleContext(atn, outerContext.parent);
}
ATNState state = atn.states.get(outerContext.invokingState); ATNState state = atn.states.get(outerContext.invokingState);
RuleTransition transition = (RuleTransition)state.transition(0); RuleTransition transition = (RuleTransition)state.transition(0);