Skip to content

Commit 3b3b30e

Browse files
authored
Remove dead branch in simplecpp::Macro::expandHashHash() (#664)
1 parent 7dcdbda commit 3b3b30e

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

simplecpp.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2318,9 +2318,6 @@ namespace simplecpp {
23182318
const Token *nextTok = B->next;
23192319

23202320
if (canBeConcatenatedStringOrChar) {
2321-
if (unexpectedA)
2322-
throw invalidHashHash::unexpectedToken(tok->location, name(), A);
2323-
23242321
// It seems clearer to handle this case separately even though the code is similar-ish, but we don't want to merge here.
23252322
// TODO The question is whether the ## or varargs may still apply, and how to provoke?
23262323
if (expandArg(tokensB, B, parametertokens)) {

0 commit comments

Comments
 (0)