Cleanup: Removed unused code from CheckMemoryLeak

This commit is contained in:
Daniel Marjamäki 2010-04-05 18:37:46 +02:00
parent 262e5390a0
commit b62ac149b5
1 changed files with 0 additions and 10 deletions

View File

@ -838,11 +838,6 @@ Token *CheckMemoryLeakInFunction::getcode(const Token *tok, std::list<const Toke
alloctype = alloc;
}
else if (matchFunctionsThatReturnArg(tok->previous(), varid))
{
addtoken("use");
}
// assignment..
else
{
@ -944,11 +939,6 @@ Token *CheckMemoryLeakInFunction::getcode(const Token *tok, std::list<const Toke
dep = true;
break;
}
if (Token::Match(tok2, ". %varid% !!.", varid))
{
dep = true;
break;
}
if (alloctype == Fd && Token::Match(tok2, "%varid% !=|>=", varid))
{
dep = true;