token.cpp: removed unreachable cases from `multiComparePercent()` (#4814)
This commit is contained in:
parent
96887c8130
commit
ce3ba5c015
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue