From ec05ea029eda919aa29a5ce8ef83f1032dfea5b5 Mon Sep 17 00:00:00 2001 From: Paul Fultz II Date: Tue, 23 Jun 2026 10:46:28 -0500 Subject: [PATCH] Remove dead branch This fixes `knownConditionTrueFalse` warning. --- simplecpp.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/simplecpp.cpp b/simplecpp.cpp index a3ca6916..4898800f 100644 --- a/simplecpp.cpp +++ b/simplecpp.cpp @@ -2318,9 +2318,6 @@ namespace simplecpp { const Token *nextTok = B->next; if (canBeConcatenatedStringOrChar) { - if (unexpectedA) - throw invalidHashHash::unexpectedToken(tok->location, name(), A); - // It seems clearer to handle this case separately even though the code is similar-ish, but we don't want to merge here. // TODO The question is whether the ## or varargs may still apply, and how to provoke? if (expandArg(tokensB, B, parametertokens)) {