Skip to content

Commit

Permalink
Merge pull request #11081 from DeterminateSystems/remove-dead-code
Browse files Browse the repository at this point in the history
Remove unused InstallableFlake::getFlakeOutputs()
  • Loading branch information
edolstra authored Jul 11, 2024
2 parents 426e2af + 87323a5 commit 0363dbf
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
14 changes: 0 additions & 14 deletions src/libcmd/installable-flake.cc
Original file line number Diff line number Diff line change
Expand Up @@ -43,20 +43,6 @@ std::vector<std::string> InstallableFlake::getActualAttrPaths()
return res;
}

Value * InstallableFlake::getFlakeOutputs(EvalState & state, const flake::LockedFlake & lockedFlake)
{
auto vFlake = state.allocValue();

callFlake(state, lockedFlake, *vFlake);

auto aOutputs = vFlake->attrs()->get(state.symbols.create("outputs"));
assert(aOutputs);

state.forceValue(*aOutputs->value, aOutputs->value->determinePos(noPos));

return aOutputs->value;
}

static std::string showAttrPaths(const std::vector<std::string> & paths)
{
std::string s;
Expand Down
2 changes: 0 additions & 2 deletions src/libcmd/installable-flake.hh
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ struct InstallableFlake : InstallableValue

std::vector<std::string> getActualAttrPaths();

Value * getFlakeOutputs(EvalState & state, const flake::LockedFlake & lockedFlake);

DerivedPathsWithInfo toDerivedPaths() override;

std::pair<Value *, PosIdx> toValue(EvalState & state) override;
Expand Down

0 comments on commit 0363dbf

Please sign in to comment.