Skip to content

Commit 129dba1

Browse files
Update valueflow.cpp
1 parent 55ae8c4 commit 129dba1

1 file changed

Lines changed: 0 additions & 13 deletions

File tree

lib/valueflow.cpp

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1107,19 +1107,6 @@ static void valueFlowImpossibleValues(TokenList& tokenList, const Settings& sett
11071107
for (const Token* tok2 : tokens) {
11081108
if (const ValueFlow::Value* v = tok2->getKnownValue(ValueFlow::Value::ValueType::INT)) {
11091109
values.emplace_back(*v);
1110-
} else {
1111-
ValueFlow::Value symValue{};
1112-
symValue.valueType = ValueFlow::Value::ValueType::SYMBOLIC;
1113-
symValue.tokvalue = tok2;
1114-
values.push_back(std::move(symValue));
1115-
std::copy_if(tok2->values().cbegin(),
1116-
tok2->values().cend(),
1117-
std::back_inserter(values),
1118-
[](const ValueFlow::Value& v) {
1119-
if (!v.isKnown())
1120-
return false;
1121-
return v.isSymbolicValue();
1122-
});
11231110
}
11241111
}
11251112
const bool isMin = Token::Match(condTok, "<|<=") ^ flipped;

0 commit comments

Comments
 (0)