removed the unused function CheckMemoryLeakInFunction::matchFunctionsThatReturnArg

This commit is contained in:
Daniel Marjamäki 2011-07-31 17:36:56 +02:00
parent 1640f3d1ca
commit 4433e621f8
2 changed files with 0 additions and 13 deletions

View File

@ -628,12 +628,6 @@ void CheckMemoryLeakInFunction::parse_noreturn()
}
bool CheckMemoryLeakInFunction::matchFunctionsThatReturnArg(const Token *tok, unsigned int varid) const
{
return Token::Match(tok, "; %varid% = strcat|memcpy|memmove|strcpy ( %varid% ,", varid);
}
bool CheckMemoryLeakInFunction::notvar(const Token *tok, unsigned int varid, bool endpar) const
{
const std::string end(endpar ? " &&|)" : " [;)&|]");

View File

@ -220,13 +220,6 @@ public:
*/
void parseFunctionScope(const Token *tok, const Token *tok1, const bool classmember);
/**
* @brief %Check if there is a "p = foo(p, .." and foo returns the argument (p)
* @param tok token to the ";" before the statement
* @param varid varid to check
*/
bool matchFunctionsThatReturnArg(const Token *tok, unsigned int varid) const;
/**
* @brief %Check if there is a "!var" match inside a condition
* @param tok first token to match