aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2021-07-22 22:43:08 +0200
committerEelco Dolstra <edolstra@gmail.com>2021-07-22 22:43:18 +0200
commita7b7fcfb16bc05cb54bc90f11c84343782e41762 (patch)
treef14bcb36fa6cb79a9c12de226d4f4f3ddfecc373 /src
parenteb6db4fd384f34ca426116cd353c02af7d0f9214 (diff)
Remove redundant RealisedPath::closure() call
Diffstat (limited to 'src')
-rw-r--r--src/libstore/build/derivation-goal.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/libstore/build/derivation-goal.cc b/src/libstore/build/derivation-goal.cc
index dad8717a2..876b8def0 100644
--- a/src/libstore/build/derivation-goal.cc
+++ b/src/libstore/build/derivation-goal.cc
@@ -340,11 +340,10 @@ void DerivationGoal::gaveUpOnSubstitution()
/* Copy the input sources from the eval store to the build
store. */
if (&worker.evalStore != &worker.store) {
- RealisedPath::Set inputSrcs, inputClosure;
+ RealisedPath::Set inputSrcs;
for (auto & i : drv->inputSrcs)
inputSrcs.insert(i);
- RealisedPath::closure(worker.evalStore, inputSrcs, inputClosure);
- copyClosure(worker.evalStore, worker.store, inputClosure);
+ copyClosure(worker.evalStore, worker.store, inputSrcs);
}
for (auto & i : drv->inputSrcs) {