From 1d1d79a1e51f9d990c9c69823c78870ec1c870f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Fri, 2 Apr 2010 20:25:13 +0200 Subject: [PATCH] Cleanup: Removed unused %name% cmd for patterns --- lib/token.cpp | 11 +---------- lib/token.h | 1 - 2 files changed, 1 insertion(+), 11 deletions(-) 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