Remove the now useless fix for #4245.
The fix for #4276 made completely useless that branch, so remove it until someone shows a testcase which breaks this commit.
This commit is contained in:
parent
7293fcfa9b
commit
63307c5db2
|
@ -5095,8 +5095,6 @@ void Tokenizer::simplifyVarDecl(bool only_k_r_fpar)
|
||||||
const Token *VarTok = type0->tokAt((int)typelen);
|
const Token *VarTok = type0->tokAt((int)typelen);
|
||||||
while (Token::Match(VarTok, "*|&|const"))
|
while (Token::Match(VarTok, "*|&|const"))
|
||||||
VarTok = VarTok->next();
|
VarTok = VarTok->next();
|
||||||
if (!VarTok)
|
|
||||||
break; // ticket 4245 - invalid code probably
|
|
||||||
list.insertTokens(eq, VarTok, 2);
|
list.insertTokens(eq, VarTok, 2);
|
||||||
eq->str(";");
|
eq->str(";");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue