Skip to content

Commit ce3ba5c

Browse files
authored
token.cpp: removed unreachable cases from multiComparePercent() (#4814)
1 parent 96887c8 commit ce3ba5c

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

lib/token.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -436,14 +436,6 @@ static int multiComparePercent(const Token *tok, const char*& haystack, nonneg i
436436
++haystack;
437437
// Compare only the first character of the string for optimization reasons
438438
switch (haystack[0]) {
439-
case '\0':
440-
case ' ':
441-
case '|':
442-
//simple '%' character
443-
haystack += 1;
444-
if (tok->isArithmeticalOp() && tok->str() == "%")
445-
return 1;
446-
break;
447439
case 'v':
448440
if (haystack[3] == '%') { // %var%
449441
haystack += 4;

0 commit comments

Comments
 (0)