libexpr: remove unused attrError

The attrError variable is no longer used but still allocated on every
call to the findAlongAttrPath function.
This commit is contained in:
Andreas Rammhold 2020-04-02 17:04:00 +02:00
parent a7540294cf
commit 4fc4eb6c93

View file

@ -37,9 +37,6 @@ std::pair<Value *, Pos> findAlongAttrPath(EvalState & state, const string & attr
{
Strings tokens = parseAttrPath(attrPath);
Error attrError =
Error(format("attribute selection path '%1%' does not match expression") % attrPath);
Value * v = &vIn;
Pos pos = noPos;