Skip to content

Commit

Permalink
Drop unused 'settings' argument
Browse files Browse the repository at this point in the history
  • Loading branch information
edolstra committed Jan 16, 2025
1 parent 5807b5c commit f027109
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/libflake/flake/flake.cc
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,6 @@ Flake getFlake(EvalState & state, const FlakeRef & originalRef, bool useRegistri
}

static LockFile readLockFile(
const Settings & settings,
const fetchers::Settings & fetchSettings,
const SourcePath & lockFilePath)
{
Expand Down Expand Up @@ -398,7 +397,6 @@ LockedFlake lockFlake(
}

auto oldLockFile = readLockFile(
settings,
state.fetchSettings,
lockFlags.referenceLockFilePath.value_or(
flake.lockFilePath()));
Expand Down Expand Up @@ -696,7 +694,7 @@ LockedFlake lockFlake(
inputFlake.inputs, childNode, inputPath,
oldLock
? std::dynamic_pointer_cast<const Node>(oldLock)
: readLockFile(settings, state.fetchSettings, inputFlake.lockFilePath()).root.get_ptr(),
: readLockFile(state.fetchSettings, inputFlake.lockFilePath()).root.get_ptr(),
oldLock ? followsPrefix : inputPath,
inputFlake.path,
false);
Expand Down

0 comments on commit f027109

Please sign in to comment.