1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-08 19:46:02 +01:00

Remove dead outputPaths variable.

This commit is contained in:
John Ericson 2025-10-15 11:03:50 -04:00
parent 46357468a4
commit 632ccfb8c0

View file

@ -170,8 +170,6 @@ Goal::Co DerivationGoal::haveDerivation(bool storeDerivation)
auto outputHashes = staticOutputHashes(worker.evalStore, *drv); auto outputHashes = staticOutputHashes(worker.evalStore, *drv);
auto resolvedHashes = staticOutputHashes(worker.store, drvResolved); auto resolvedHashes = staticOutputHashes(worker.store, drvResolved);
StorePathSet outputPaths;
auto outputHash = get(outputHashes, wantedOutput); auto outputHash = get(outputHashes, wantedOutput);
auto resolvedHash = get(resolvedHashes, wantedOutput); auto resolvedHash = get(resolvedHashes, wantedOutput);
if ((!outputHash) || (!resolvedHash)) if ((!outputHash) || (!resolvedHash))
@ -211,7 +209,6 @@ Goal::Co DerivationGoal::haveDerivation(bool storeDerivation)
worker.store.signRealisation(newRealisation); worker.store.signRealisation(newRealisation);
worker.store.registerDrvOutput(newRealisation); worker.store.registerDrvOutput(newRealisation);
} }
outputPaths.insert(realisation.outPath);
auto status = success.status; auto status = success.status;
if (status == BuildResult::Success::AlreadyValid) if (status == BuildResult::Success::AlreadyValid)