From 4455f28e426f49c2e3b8ef08961e5073a11a5b4f Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sat, 4 Jul 2020 03:42:21 +0100 Subject: chore(3p/nix/libexpr): Remove dead code from attribute sets These bits are no longer required with the hashmap-backed implementation of attribute sets. Change-Id: I8b936d8d438a00bad4ccf8e0b4dd719c559ce8c2 Reviewed-on: https://cl.tvl.fyi/c/depot/+/912 Tested-by: BuildkiteCI Reviewed-by: edef --- third_party/nix/src/libexpr/eval.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'third_party/nix/src/libexpr/eval.cc') diff --git a/third_party/nix/src/libexpr/eval.cc b/third_party/nix/src/libexpr/eval.cc index 91dff6b40d..6d77928d7d 100644 --- a/third_party/nix/src/libexpr/eval.cc +++ b/third_party/nix/src/libexpr/eval.cc @@ -1865,7 +1865,7 @@ size_t valueSize(Value& v) { case tAttrs: if (seen.find(v.attrs) == seen.end()) { seen.insert(v.attrs); - sz += sizeof(Bindings) + sizeof(Attr) * v.attrs->capacity(); + sz += sizeof(Bindings); for (auto& i : *v.attrs) { sz += doValue(*i.second.value); } -- cgit 1.4.1