Merge pull request #402 from Dmitry-Me/emiminateDuplicateStatements

Remove duplicate return statements.
This commit is contained in:
PKEuS 2014-08-18 18:39:46 +02:00
commit 49bafa10a0
1 changed files with 4 additions and 6 deletions

View File

@ -1393,9 +1393,8 @@ CheckIO::ArgumentInfo::ArgumentInfo(const Token * tok, const Settings *settings)
typeToken = typeToken->next();
functionInfo = function;
element = true;
return;
} else
return;
}
return;
}
} else if (tok1->previous()->str() == ")" && tok1->linkAt(-1)->previous()->type() == Token::eFunction) {
const Function * function = tok1->linkAt(-1)->previous()->function();
@ -1405,9 +1404,8 @@ CheckIO::ArgumentInfo::ArgumentInfo(const Token * tok, const Settings *settings)
typeToken = typeToken->next();
functionInfo = function;
element = false;
return;
} else
return;
}
return;
} else
varTok = tok1->previous();
break;