Cleanup: Removed unused code from CheckMemoryLeak
This commit is contained in:
parent
262e5390a0
commit
b62ac149b5
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue