From ce3ba5c0156fe61ae802102d7ed2a0aa1f0ee5f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20St=C3=B6neberg?= Date: Thu, 23 Feb 2023 22:58:10 +0100 Subject: [PATCH] token.cpp: removed unreachable cases from `multiComparePercent()` (#4814) --- lib/token.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/lib/token.cpp b/lib/token.cpp index 0aeeedd1c..40be28382 100644 --- a/lib/token.cpp +++ b/lib/token.cpp @@ -436,14 +436,6 @@ static int multiComparePercent(const Token *tok, const char*& haystack, nonneg i ++haystack; // Compare only the first character of the string for optimization reasons switch (haystack[0]) { - case '\0': - case ' ': - case '|': - //simple '%' character - haystack += 1; - if (tok->isArithmeticalOp() && tok->str() == "%") - return 1; - break; case 'v': if (haystack[3] == '%') { // %var% haystack += 4;