From f79b06b5a040b4eb23ad9b71db565d1e56cd9a70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sun, 4 Jan 2009 07:14:46 +0000 Subject: [PATCH] tokenize : Removed unneeded variable --- tokenize.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/tokenize.cpp b/tokenize.cpp index cbf848b36..b64edae26 100644 --- a/tokenize.cpp +++ b/tokenize.cpp @@ -1518,8 +1518,6 @@ void Tokenizer::fillFunctionList() { _functionList.clear(); - bool classfunc = false; - int indentlevel = 0; for ( const Token *tok = _tokens; tok; tok = tok->next() ) { @@ -1534,13 +1532,7 @@ void Tokenizer::fillFunctionList() continue; } - if (strchr("};", tok->aaaa0())) - classfunc = false; - - else if ( tok->str() == "::" ) - classfunc = true; - - else if (Token::Match(tok, "%var% (")) + if (Token::Match(tok, "%var% (")) { // Check if this is the first token of a function implementation.. for ( const Token *tok2 = tok->tokAt(2); tok2; tok2 = tok2->next() )