diff options
Diffstat (limited to 'src/libexpr/nixexpr.cc')
-rw-r--r-- | src/libexpr/nixexpr.cc | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/src/libexpr/nixexpr.cc b/src/libexpr/nixexpr.cc index b044aaa943d4..6ef996bdca50 100644 --- a/src/libexpr/nixexpr.cc +++ b/src/libexpr/nixexpr.cc @@ -15,6 +15,11 @@ std::ostream & operator << (std::ostream & str, Expr & e) } +void Expr::show(std::ostream & str) +{ + abort(); +} + void ExprInt::show(std::ostream & str) { str << n; @@ -152,20 +157,6 @@ ATerm bottomupRewrite(TermFun & f, ATerm e) } -Expr makeAttrs(const ATermMap & attrs) -{ - ATermList bnds = ATempty; - for (ATermMap::const_iterator i = attrs.begin(); i != attrs.end(); ++i) { - Expr e; - ATerm pos; - if (!matchAttrRHS(i->value, e, pos)) - abort(); /* can't happen */ - bnds = ATinsert(bnds, makeBind(i->key, e, pos)); - } - return makeAttrs(bnds); -} - - static void varsBoundByPattern(ATermMap & map, Pattern pat) { ATerm name; |