cleanup unused function

This commit is contained in:
Daniel Marjamäki 2021-08-15 11:00:46 +02:00
parent be978b35cf
commit 6a565f9e2f
1 changed files with 0 additions and 14 deletions

View File

@ -4482,20 +4482,6 @@ static void insertNegateKnown(std::list<ValueFlow::Value>& values, const std::li
} }
} }
static std::vector<const Variable*> getExprVariables(const Token* expr,
const TokenList* tokenlist,
const SymbolDatabase* symboldatabase,
const Settings* settings)
{
std::vector<const Variable*> result;
FwdAnalysis fwdAnalysis(tokenlist->isCPP(), settings->library);
std::set<nonneg int> varids = fwdAnalysis.getExprVarIds(expr);
std::transform(varids.begin(), varids.end(), std::back_inserter(result), [&](int id) {
return symboldatabase->getVariableFromVarId(id);
});
return result;
}
struct ConditionHandler { struct ConditionHandler {
struct Condition { struct Condition {
const Token *vartok; const Token *vartok;