Skip to content

Commit b8eaf1b

Browse files
authored
Merge pull request #12643 from obsidiansystems/delete-dead-goal-var
Remove unused parameter to the goal constructor
2 parents 1055c9f + ecdcba2 commit b8eaf1b

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/libstore/build/derivation-goal.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ namespace nix {
3838

3939
DerivationGoal::DerivationGoal(const StorePath & drvPath,
4040
const OutputsSpec & wantedOutputs, Worker & worker, BuildMode buildMode)
41-
: Goal(worker, DerivedPath::Built { .drvPath = makeConstantStorePathRef(drvPath), .outputs = wantedOutputs })
41+
: Goal(worker)
4242
, useDerivation(true)
4343
, drvPath(drvPath)
4444
, wantedOutputs(wantedOutputs)
@@ -56,7 +56,7 @@ DerivationGoal::DerivationGoal(const StorePath & drvPath,
5656

5757
DerivationGoal::DerivationGoal(const StorePath & drvPath, const BasicDerivation & drv,
5858
const OutputsSpec & wantedOutputs, Worker & worker, BuildMode buildMode)
59-
: Goal(worker, DerivedPath::Built { .drvPath = makeConstantStorePathRef(drvPath), .outputs = wantedOutputs })
59+
: Goal(worker)
6060
, useDerivation(false)
6161
, drvPath(drvPath)
6262
, wantedOutputs(wantedOutputs)

src/libstore/build/drv-output-substitution-goal.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ DrvOutputSubstitutionGoal::DrvOutputSubstitutionGoal(
1111
Worker & worker,
1212
RepairFlag repair,
1313
std::optional<ContentAddress> ca)
14-
: Goal(worker, DerivedPath::Opaque { StorePath::dummy })
14+
: Goal(worker)
1515
, id(id)
1616
{
1717
name = fmt("substitution of '%s'", id.to_string());

src/libstore/build/goal.hh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ public:
378378
*/
379379
std::optional<Error> ex;
380380

381-
Goal(Worker & worker, DerivedPath path)
381+
Goal(Worker & worker)
382382
: worker(worker), top_co(init_wrapper())
383383
{
384384
// top_co shouldn't have a goal already, should be nullptr.

src/libstore/build/substitution-goal.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
namespace nix {
99

1010
PathSubstitutionGoal::PathSubstitutionGoal(const StorePath & storePath, Worker & worker, RepairFlag repair, std::optional<ContentAddress> ca)
11-
: Goal(worker, DerivedPath::Opaque { storePath })
11+
: Goal(worker)
1212
, storePath(storePath)
1313
, repair(repair)
1414
, ca(ca)

0 commit comments

Comments
 (0)