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

@ -72,17 +72,8 @@ class Parser
} }
private Token consume(TokenType type, string message) 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); throw error(peek(), message);
} }