diff --git a/lib/token.cpp b/lib/token.cpp index 4d7b4dda5..97434473d 100644 --- a/lib/token.cpp +++ b/lib/token.cpp @@ -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; diff --git a/lib/token.h b/lib/token.h index 963b3e4b1..39d8237a0 100644 --- a/lib/token.h +++ b/lib/token.h @@ -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