Drop dead code

localPath is unused
This commit is contained in:
Matthew Kenigsberg 2023-09-10 12:18:03 +02:00
parent 2cdc9c32e7
commit 07545add53
No known key found for this signature in database
GPG key ID: B840146580C5F755

View file

@ -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