Tokenizer: Remove redundant setVarId call

This commit is contained in:
Daniel Marjamäki 2022-09-08 07:46:19 +02:00
parent 847391ea2d
commit b99474fe13
1 changed files with 0 additions and 8 deletions

View File

@ -5109,14 +5109,6 @@ bool Tokenizer::simplifyTokenList1(const char FileName[])
// Link < with >
createLinks2();
if (mTimerResults) {
Timer t("Tokenizer::tokenize::setVarId (2)", mSettings->showtime, mTimerResults);
setVarId();
}
else {
setVarId();
}
// Mark C++ casts
for (Token *tok = list.front(); tok; tok = tok->next()) {
if (Token::Match(tok, "const_cast|dynamic_cast|reinterpret_cast|static_cast <") && Token::simpleMatch(tok->linkAt(1), "> (")) {