Remove unexecuted branch in duplicateTypedef:

If the code is intended to be used, please revert + provide a valid testcase.
This commit is contained in:
Edoardo Prezioso 2012-11-04 23:03:14 +01:00
parent 333711ae4f
commit 4e25ffa948
1 changed files with 0 additions and 6 deletions

View File

@ -205,12 +205,6 @@ bool Tokenizer::duplicateTypedef(Token **tokPtr, const Token *name, const Token
duplicateTypedefError(*tokPtr, name, "template instantiation");
*tokPtr = end->link();
return true;
} else if (Token::Match(tok->previous(), "%type%")) {
if (end->link()->next()->str() == "{") {
duplicateTypedefError(*tokPtr, name, "function");
*tokPtr = end->link()->next()->link();
return true;
}
}
}