Remove a useless condition in Parser.hpp

This commit is contained in:
Username404 2021-09-18 16:26:29 +02:00
parent fefa7b05c7
commit 8cb72a9baa
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 6 additions and 8 deletions

View File

@ -36,7 +36,6 @@ namespace Parser {
parseTree << Class(next.toktext); ++i; parseTree << Class(next.toktext); ++i;
} else throw ParsingException((not next.toktext.empty()) ? '"' + next.toktext + "\" is not a valid class identifier" : "A class identifier is required", next.line); } else throw ParsingException((not next.toktext.empty()) ? '"' + next.toktext + "\" is not a valid class identifier" : "A class identifier is required", next.line);
} else { } else {
if ((lexed.size() - i) > 2) {
bool isFinalDefine = nextAre({TAG, DEFINE}); bool isFinalDefine = nextAre({TAG, DEFINE});
if (isFinalDefine || next.toktype == DEFINE) { if (isFinalDefine || next.toktype == DEFINE) {
parseTree << Define(isFinalDefine, current.toktext); parseTree << Define(isFinalDefine, current.toktext);
@ -46,7 +45,6 @@ namespace Parser {
} }
} }
} }
}
default: break; default: break;
} }
} }