1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-09 03:56:01 +01:00

Merge pull request #13632 from NixOS/mergify/bp/2.28-maintenance/pr-13360

libexpr: Remove non-const overload of `listElems` (backport #13360)
This commit is contained in:
mergify[bot] 2025-07-31 03:09:59 +00:00 committed by GitHub
commit b13a119a79
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -451,11 +451,6 @@ public:
return internalType == tList1 || internalType == tList2 || internalType == tListN; 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 std::span<Value * const> listItems() const
{ {
assert(isList()); assert(isList());