diff options
Diffstat (limited to 'third_party/nix/src/libexpr/attr-set.hh')
-rw-r--r-- | third_party/nix/src/libexpr/attr-set.hh | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/third_party/nix/src/libexpr/attr-set.hh b/third_party/nix/src/libexpr/attr-set.hh index a9db0db85644..6397008517d2 100644 --- a/third_party/nix/src/libexpr/attr-set.hh +++ b/third_party/nix/src/libexpr/attr-set.hh @@ -2,7 +2,6 @@ #pragma once #include <absl/container/btree_map.h> -#include <gc/gc_allocator.h> #include "libexpr/nixexpr.hh" #include "libexpr/symbol-table.hh" @@ -14,7 +13,7 @@ class EvalState; struct Value; /* Map one attribute name to its value. */ -struct Attr : public gc { +struct Attr { Symbol name; Value* value; // TODO(tazjin): Who owns this? Pos* pos; // TODO(tazjin): Who owns this? @@ -22,13 +21,9 @@ struct Attr : public gc { : name(name), value(value), pos(pos){}; }; -// Convenience alias for the backing map, with the garbage-collecting -// allocator explicitly specified. -using AttributeMap = - absl::btree_map<Symbol, Attr, std::less<Symbol>, - traceable_allocator<std::pair<const Symbol, Attr>>>; +using AttributeMap = absl::btree_map<Symbol, Attr>; -class Bindings : public gc { +class Bindings { public: typedef AttributeMap::iterator iterator; |