Removed debug variables

This commit is contained in:
Daniel Marjamäki 2011-12-27 09:27:46 +01:00
parent fdb6ee2ad7
commit 9593e14d72
2 changed files with 0 additions and 4 deletions

View File

@ -2700,8 +2700,6 @@ void CheckMemoryLeakStructMember::checkStructVariable(const Token * const vartok
// skip ahead out of the block
bool ret = false;
while (tok3) {
// debug info
const std::string tok3str_(tok3->str());
if (tok3->str() == "return")
ret = true;
else if (tok3->str() == "{" || tok3->str() == "}")

View File

@ -4507,8 +4507,6 @@ bool Tokenizer::simplifyTokenList()
tok->insertToken(varname);
tok->next()->varId(varid);
} else if (Token::Match(tok, "; %var% = realloc ( 0 , %num% ) ;")) {
const std::string varname(tok->next()->str());
tok = tok->tokAt(3);
// Change function name "realloc" to "malloc"
tok->str("malloc");