Skip to content

Commit c458271

Browse files
authored
[NFC] Remove unused constant in FirstWaveComputer.swift (#1446)
Fixes `Initialization of immutable value 'pathModuleInfo' was never used; consider replacing with assignment to '_' or removing it` warning in `FirstWaveComputer.swift`. The function's body of which result is unused looks to be free of side-effects, so removing this call should in turn have no effect.
1 parent 716267d commit c458271

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

Sources/SwiftDriver/IncrementalCompilation/FirstWaveComputer.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,6 @@ extension IncrementalCompilationState.FirstWaveComputer {
176176
for pathModuleId in pathSoFar {
177177
if !modulesRequiringRebuild.contains(pathModuleId) &&
178178
!isMainModule {
179-
let pathModuleInfo = try moduleDependencyGraph.moduleInfo(of: pathModuleId)
180179
reporter.reportExplicitDependencyWillBeReBuilt(pathModuleId.moduleNameForDiagnostic,
181180
reason: "Invalidated by downstream dependency")
182181
}

0 commit comments

Comments
 (0)