Remove redundant RealisedPath::closure() call

This commit is contained in:
Eelco Dolstra 2021-07-22 22:43:08 +02:00
parent eb6db4fd38
commit a7b7fcfb16

View file

@ -340,11 +340,10 @@ void DerivationGoal::gaveUpOnSubstitution()
/* Copy the input sources from the eval store to the build /* Copy the input sources from the eval store to the build
store. */ store. */
if (&worker.evalStore != &worker.store) { if (&worker.evalStore != &worker.store) {
RealisedPath::Set inputSrcs, inputClosure; RealisedPath::Set inputSrcs;
for (auto & i : drv->inputSrcs) for (auto & i : drv->inputSrcs)
inputSrcs.insert(i); inputSrcs.insert(i);
RealisedPath::closure(worker.evalStore, inputSrcs, inputClosure); copyClosure(worker.evalStore, worker.store, inputSrcs);
copyClosure(worker.evalStore, worker.store, inputClosure);
} }
for (auto & i : drv->inputSrcs) { for (auto & i : drv->inputSrcs) {