mirror of
https://github.com/NixOS/nix.git
synced 2025-11-21 09:49:36 +01:00
Get rid of filterDrvOutputs
We don't need it any more, because we only used it in the single-wanted-output `DerivationGoal`.
This commit is contained in:
parent
766a52ce87
commit
7707d0acad
3 changed files with 2 additions and 22 deletions
|
|
@ -135,18 +135,6 @@ size_t Realisation::checkSignatures(const PublicKeys & publicKeys) const
|
|||
return good;
|
||||
}
|
||||
|
||||
SingleDrvOutputs filterDrvOutputs(const OutputsSpec & wanted, SingleDrvOutputs && outputs)
|
||||
{
|
||||
SingleDrvOutputs ret = std::move(outputs);
|
||||
for (auto it = ret.begin(); it != ret.end();) {
|
||||
if (!wanted.contains(it->first))
|
||||
it = ret.erase(it);
|
||||
else
|
||||
++it;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
StorePath RealisedPath::path() const
|
||||
{
|
||||
return std::visit([](auto && arg) { return arg.getPath(); }, raw);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue