From 4d98143914120d0163f5c50f30ce8a5289433f8f Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 9 Mar 2022 20:31:50 +0100 Subject: [PATCH] BuildResult: Remove unused drvPath field --- src/libstore/build-result.hh | 4 ++-- src/libstore/build/derivation-goal.cc | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/libstore/build-result.hh b/src/libstore/build-result.hh index d39d23a76..cb6d19b8e 100644 --- a/src/libstore/build-result.hh +++ b/src/libstore/build-result.hh @@ -67,8 +67,8 @@ struct BuildResult /* The derivation we built or the store path we substituted. */ DerivedPath path; - /* For derivations, the derivation path and the wanted outputs. */ - std::optional drvPath; + /* For derivations, a mapping from the names of the wanted outputs + to actual paths. */ DrvOutputs builtOutputs; /* The start/stop times of the build (or one of the rounds, if it diff --git a/src/libstore/build/derivation-goal.cc b/src/libstore/build/derivation-goal.cc index 325635e2e..afed9bf16 100644 --- a/src/libstore/build/derivation-goal.cc +++ b/src/libstore/build/derivation-goal.cc @@ -1324,7 +1324,6 @@ void DerivationGoal::done( DrvOutputs builtOutputs, std::optional ex) { - buildResult.drvPath = drvPath; buildResult.status = status; if (ex) // FIXME: strip: "error: "