Changed the name of the removal of dead code after flow control statements for consistency (simplifyDeadCode is too generalized as name)

This commit is contained in:
Edoardo Prezioso 2011-10-15 12:45:48 +02:00
parent 57ead6988e
commit 8afc1b6f2d
2 changed files with 3 additions and 3 deletions

View File

@ -3963,7 +3963,7 @@ bool Tokenizer::simplifyTokenList()
simplifyGoto();
simplifyDeadCode();
simplifyFlowControl();
// Combine wide strings
for (Token *tok = _tokens; tok; tok = tok->next()) {
@ -4270,7 +4270,7 @@ void Tokenizer::removeRedundantAssignment()
}
}
void Tokenizer::simplifyDeadCode()
void Tokenizer::simplifyFlowControl()
{
unsigned int indentlevel = 0;
unsigned int indentcase = 0;

View File

@ -340,7 +340,7 @@ public:
/** Simplify redundant code placed after control flow statements :
* 'return', 'goto', 'break' and 'continue'
*/
void simplifyDeadCode();
void simplifyFlowControl();
/** Expand nested strcat() calls. */
void simplifyNestedStrcat();