Skip to content

Commit 4635746

Browse files
committed
Remove unused parameters to DrvOutputSubstitutionGoal
1 parent b20cebf commit 4635746

File tree

5 files changed

+6
-15
lines changed

5 files changed

+6
-15
lines changed

src/libstore/build/derivation-goal.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,7 @@ Goal::Co DerivationGoal::haveDerivation(bool storeDerivation)
100100
them. */
101101
if (settings.useSubstitutes && drvOptions.substitutesAllowed()) {
102102
if (!checkResult)
103-
waitees.insert(upcast_goal(worker.makeDrvOutputSubstitutionGoal(
104-
DrvOutput{outputHash, wantedOutput}, buildMode == bmRepair ? Repair : NoRepair)));
103+
waitees.insert(upcast_goal(worker.makeDrvOutputSubstitutionGoal(DrvOutput{outputHash, wantedOutput})));
105104
else {
106105
auto * cap = getDerivationCA(*drv);
107106
waitees.insert(upcast_goal(worker.makePathSubstitutionGoal(

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88

99
namespace nix {
1010

11-
DrvOutputSubstitutionGoal::DrvOutputSubstitutionGoal(
12-
const DrvOutput & id, Worker & worker, RepairFlag repair, std::optional<ContentAddress> ca)
11+
DrvOutputSubstitutionGoal::DrvOutputSubstitutionGoal(const DrvOutput & id, Worker & worker)
1312
: Goal(worker, init())
1413
, id(id)
1514
{

src/libstore/build/worker.cc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,9 @@ Worker::makePathSubstitutionGoal(const StorePath & path, RepairFlag repair, std:
104104
return initGoalIfNeeded(substitutionGoals[path], path, *this, repair, ca);
105105
}
106106

107-
std::shared_ptr<DrvOutputSubstitutionGoal>
108-
Worker::makeDrvOutputSubstitutionGoal(const DrvOutput & id, RepairFlag repair, std::optional<ContentAddress> ca)
107+
std::shared_ptr<DrvOutputSubstitutionGoal> Worker::makeDrvOutputSubstitutionGoal(const DrvOutput & id)
109108
{
110-
return initGoalIfNeeded(drvOutputSubstitutionGoals[id], id, *this, repair, ca);
109+
return initGoalIfNeeded(drvOutputSubstitutionGoals[id], id, *this);
111110
}
112111

113112
GoalPtr Worker::makeGoal(const DerivedPath & req, BuildMode buildMode)

src/libstore/include/nix/store/build/drv-output-substitution-goal.hh

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,7 @@ class DrvOutputSubstitutionGoal : public Goal
2929
DrvOutput id;
3030

3131
public:
32-
DrvOutputSubstitutionGoal(
33-
const DrvOutput & id,
34-
Worker & worker,
35-
RepairFlag repair = NoRepair,
36-
std::optional<ContentAddress> ca = std::nullopt);
37-
32+
DrvOutputSubstitutionGoal(const DrvOutput & id, Worker & worker);
3833

3934
Co init();
4035
Co realisationFetched(Goals waitees, std::shared_ptr<const Realisation> outputInfo, nix::ref<nix::Store> sub);

src/libstore/include/nix/store/build/worker.hh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,8 +240,7 @@ public:
240240
*/
241241
std::shared_ptr<PathSubstitutionGoal> makePathSubstitutionGoal(
242242
const StorePath & storePath, RepairFlag repair = NoRepair, std::optional<ContentAddress> ca = std::nullopt);
243-
std::shared_ptr<DrvOutputSubstitutionGoal> makeDrvOutputSubstitutionGoal(
244-
const DrvOutput & id, RepairFlag repair = NoRepair, std::optional<ContentAddress> ca = std::nullopt);
243+
std::shared_ptr<DrvOutputSubstitutionGoal> makeDrvOutputSubstitutionGoal(const DrvOutput & id);
245244

246245
/**
247246
* Make a goal corresponding to the `DerivedPath`.

0 commit comments

Comments
 (0)