Remove reduntant condition

This commit is contained in:
Paul 2020-08-13 10:10:26 -05:00
parent 3523d2b329
commit e759508335
1 changed files with 1 additions and 1 deletions

View File

@ -545,7 +545,7 @@ void execute(const Token *expr,
} }
else if (Token::Match(expr->tokAt(-3), "%var% . %name% (")) { else if (Token::Match(expr->tokAt(-3), "%var% . %name% (")) {
const Token* containerTok = expr->tokAt(-3); const Token* containerTok = expr->tokAt(-3);
if (astIsContainer(containerTok) && containerTok->varId() > 0) { if (astIsContainer(containerTok)) {
Library::Container::Yield yield = containerTok->valueType()->container->getYield(expr->strAt(-1)); Library::Container::Yield yield = containerTok->valueType()->container->getYield(expr->strAt(-1));
if (yield == Library::Container::Yield::SIZE) { if (yield == Library::Container::Yield::SIZE) {
if (!programMemory->getContainerSizeValue(containerTok->varId(), result)) if (!programMemory->getContainerSizeValue(containerTok->varId(), result))