Code cleanup

This commit is contained in:
Daniel Marjamäki 2020-01-25 18:11:54 +01:00
parent 6f8799023f
commit a5a294cf13
1 changed files with 0 additions and 2 deletions

View File

@ -74,8 +74,6 @@ static bool isRefPtrArg(const Token *tok)
static bool isNonReferenceArg(const Token *tok) static bool isNonReferenceArg(const Token *tok)
{ {
const Variable *var = tok->variable(); const Variable *var = tok->variable();
//if (var && !var->valueType())
// throw InternalError(tok, "var without valueType");
return (var && var->isArgument() && !var->isReference() && (var->isPointer() || (var->valueType() && var->valueType()->type >= ValueType::Type::CONTAINER) || var->type())); return (var && var->isArgument() && !var->isReference() && (var->isPointer() || (var->valueType() && var->valueType()->type >= ValueType::Type::CONTAINER) || var->type()));
} }