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 <edef@edef.eu>
This commit is contained in:
Vincent Ambo 2020-07-04 03:42:21 +01:00 committed by tazjin
parent ca03175e31
commit 4455f28e42
3 changed files with 2 additions and 17 deletions

View file

@ -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);
}