diff options
author | Andreas Rammhold <andreas@rammhold.de> | 2020-04-02 17:04:00 +0200 |
---|---|---|
committer | Andreas Rammhold <andreas@rammhold.de> | 2020-04-02 17:04:00 +0200 |
commit | 4fc4eb6c93511c61a278ba0e5555ffb24435ab59 (patch) | |
tree | 660aec4a348d84b63cacb70b49f9dd90da68595b | |
parent | a7540294cfae82c098e8691cd5212a9184add574 (diff) |
libexpr: remove unused attrError
The attrError variable is no longer used but still allocated on every
call to the findAlongAttrPath function.
-rw-r--r-- | src/libexpr/attr-path.cc | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/libexpr/attr-path.cc b/src/libexpr/attr-path.cc index 4545bfd72..76d101b98 100644 --- a/src/libexpr/attr-path.cc +++ b/src/libexpr/attr-path.cc @@ -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; |