Remove dead code statements

This commit is contained in:
Sam Harwell 2014-04-27 00:04:07 -05:00
parent 72968775bd
commit fb0adf1ce5
4 changed files with 3 additions and 6 deletions

View File

@ -878,7 +878,7 @@ namespace Antlr4.Runtime.Atn
}
nextTransition_continue: ;
}
nextTransition_break: ;
if (optimizedTransitions != null)
{
if (state.IsOptimized)
@ -894,7 +894,7 @@ nextTransition_break: ;
}
}
}
nextState_break: ;
return removedEdges;
}

View File

@ -567,7 +567,6 @@ namespace Antlr4.Runtime.Atn
c = config.Transform(t.target, true);
break;
}
goto case TransitionType.Epsilon;
}
case TransitionType.Epsilon:

View File

@ -342,7 +342,7 @@ namespace Antlr4.Runtime.Tree.Pattern
// System.out.println("pattern tree = "+tree.toStringTree(parserInterp));
throw (RecognitionException)e.InnerException;
}
catch (RecognitionException re)
catch (RecognitionException)
{
throw;
}
@ -472,7 +472,6 @@ namespace Antlr4.Runtime.Tree.Pattern
RuleTagToken ruleTagToken = GetRuleTagToken(r2);
if (ruleTagToken != null)
{
ParseTreeMatch m = null;
if (r1.GetRuleIndex() == r2.GetRuleIndex())
{
// track label->list-of-nodes for both rule name and label (if any)

View File

@ -187,7 +187,6 @@ namespace Antlr4.Runtime.Tree.Xpath
throw new ArgumentException("Unknowth path element " + el);
}
}
loop_continue: ;
}
loop_break: ;
return elements.ToArray();