Removed debug variables
This commit is contained in:
parent
fdb6ee2ad7
commit
9593e14d72
|
@ -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() == "}")
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue