Removed unused consume overload

This commit is contained in:
Brandon Dyck 2023-07-02 17:09:34 -06:00
parent f43e0464b6
commit 86a9241632

View File

@ -73,16 +73,7 @@ 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();
}
if (check(type)) return advance();
throw error(peek(), message);
}