Parser.hpp: Remove a useless condition in the filter_comma_list function
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
This commit is contained in:
parent
c0f7b4cc22
commit
51b5a546c7
|
@ -20,7 +20,7 @@ namespace Parser {
|
||||||
) { error(token, text, token.line, quoteTokenText); }
|
) { error(token, text, token.line, quoteTokenText); }
|
||||||
|
|
||||||
void filter_comma_list(vector<tok>& tokens) {
|
void filter_comma_list(vector<tok>& tokens) {
|
||||||
if (tokens.size() >= 2 && tokens[1].toktype != tok::RPAR) {
|
if (tokens.size() >= 2) {
|
||||||
for (auto iterator = tokens.begin(); iterator->toktype != tok::COMMA && iterator < tokens.end() - 1; ++iterator) {
|
for (auto iterator = tokens.begin(); iterator->toktype != tok::COMMA && iterator < tokens.end() - 1; ++iterator) {
|
||||||
const auto nextIterator = iterator + 1;
|
const auto nextIterator = iterator + 1;
|
||||||
if (nextIterator->toktype == tok::COMMA) {
|
if (nextIterator->toktype == tok::COMMA) {
|
||||||
|
|
Loading…
Reference in New Issue