Removed unused consume overload
This commit is contained in:
parent
f43e0464b6
commit
86a9241632
@ -72,17 +72,8 @@ class Parser
|
||||
}
|
||||
|
||||
private Token consume(TokenType type, string message)
|
||||
{
|
||||
return consume(new TokenType[] { type }, message);
|
||||
}
|
||||
|
||||
private Token consume(TokenType[] types, string message)
|
||||
{
|
||||
foreach (var type in types)
|
||||
{
|
||||
if (check(type)) return advance();
|
||||
}
|
||||
|
||||
throw error(peek(), message);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user