token.cpp: removed unreachable cases from `multiComparePercent()` (#4814)

This commit is contained in:
Oliver Stöneberg 2023-02-23 22:58:10 +01:00 committed by GitHub
parent 96887c8130
commit ce3ba5c015
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 8 deletions

View File

@ -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;