1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-24 09:41:15 +02:00

Merge pull request #13360 from xokdvium/duplicate-list-elems-overload

libexpr: Remove non-const overload of `listElems`
This commit is contained in:
Jörg Thalheim 2025-06-13 07:03:03 +02:00 committed by GitHub
commit d12e42489a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -410,11 +410,6 @@ public:
return internalType == tList1 || internalType == tList2 || internalType == tListN;
}
Value * const * listElems()
{
return internalType == tList1 || internalType == tList2 ? payload.smallList : payload.bigList.elems;
}
std::span<Value * const> listItems() const
{
assert(isList());