diff --git a/src/tokenize.cpp b/src/tokenize.cpp index ea3660517..6f2f74513 100644 --- a/src/tokenize.cpp +++ b/src/tokenize.cpp @@ -2203,9 +2203,8 @@ void Tokenizer::simplifyCasts() } -bool Tokenizer::simplifyFunctionParameters() +void Tokenizer::simplifyFunctionParameters() { - bool ret = false; int indentlevel = 0; for (Token *tok = _tokens; tok; tok = tok->next()) { @@ -2265,7 +2264,6 @@ bool Tokenizer::simplifyFunctionParameters() // Replace "x" with "int x" or similar Token::replace(argumentNames[tok->str()], start, tok); - ret = true; tok = temp; start = tok; } @@ -2288,8 +2286,6 @@ bool Tokenizer::simplifyFunctionParameters() ++indentlevel; } } - - return ret; } diff --git a/src/tokenize.h b/src/tokenize.h index 9089de5ce..dfb3e594a 100644 --- a/src/tokenize.h +++ b/src/tokenize.h @@ -258,7 +258,7 @@ private: * Simplify functions like "void f(x) int x; {" * into "void f(int x) {" */ - bool simplifyFunctionParameters(); + void simplifyFunctionParameters(); /** * Simplify namespaces by removing them, e.g.