Cleanup: Removed unused %name% cmd for patterns

This commit is contained in:
Daniel Marjamäki 2010-04-02 20:25:13 +02:00
parent c6bbc9d739
commit 1d1d79a1e5
2 changed files with 1 additions and 11 deletions

View File

@ -390,17 +390,8 @@ bool Token::Match(const Token *tok, const char pattern[], unsigned int varid)
patternIdentified = true;
}
// Any symbolname..
if (firstWordEquals(p, "%name%") == 0)
{
if (!tok->isName())
return false;
patternIdentified = true;
}
// Type..
if (firstWordEquals(p, "%type%") == 0)
else if (firstWordEquals(p, "%type%") == 0)
{
if (!tok->isName())
return false;

View File

@ -98,7 +98,6 @@ public:
* Possible patterns
* - "%any%" any token
* - "%var%" any token which is a name or type e.g. "hello" or "int"
* - "%name%" any token which is a name or type e.g. "hello" or "int"
* - "%type%" Anything that can be a variable type, e.g. "int", but not "delete".
* - "%num%" Any numeric token, e.g. "23"
* - "%bool%" true or false