From 07545add53ab39b4560d8e7cec1748423ae1a22e Mon Sep 17 00:00:00 2001 From: Matthew Kenigsberg Date: Sun, 10 Sep 2023 12:18:03 +0200 Subject: Drop dead code localPath is unused --- src/libexpr/flake/flake.cc | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/libexpr/flake/flake.cc') diff --git a/src/libexpr/flake/flake.cc b/src/libexpr/flake/flake.cc index 6a27ea2e8..90427e064 100644 --- a/src/libexpr/flake/flake.cc +++ b/src/libexpr/flake/flake.cc @@ -520,11 +520,6 @@ LockedFlake lockFlake( } } - auto localPath(parentPath); - // If this input is a path, recurse it down. - // This allows us to resolve path inputs relative to the current flake. - if ((*input.ref).input.getType() == "path") - localPath = absPath(*input.ref->input.getSourcePath(), parentPath); computeLocks( mustRefetch ? getFlake(state, oldLock->lockedRef, false, flakeCache, inputPath).inputs -- cgit v1.2.3