From f5041779686f7461ab4014cef1e0766a7eabc1a0 Mon Sep 17 00:00:00 2001 From: Max Desiatov Date: Wed, 20 Sep 2023 11:52:38 +0100 Subject: [PATCH] [NFC] Remove unused constant in `FirstWaveComputer.swift` Fixes `Initialization of immutable value 'pathModuleInfo' was never used; consider replacing with assignment to '_' or removing it` warning in `FirstWaveComputer.swift`. The function code looks to be free of side-effects, so removing this call should in turn have no effect. --- .../SwiftDriver/IncrementalCompilation/FirstWaveComputer.swift | 1 - 1 file changed, 1 deletion(-) diff --git a/Sources/SwiftDriver/IncrementalCompilation/FirstWaveComputer.swift b/Sources/SwiftDriver/IncrementalCompilation/FirstWaveComputer.swift index 22a17798b..cf7e63d8d 100644 --- a/Sources/SwiftDriver/IncrementalCompilation/FirstWaveComputer.swift +++ b/Sources/SwiftDriver/IncrementalCompilation/FirstWaveComputer.swift @@ -176,7 +176,6 @@ extension IncrementalCompilationState.FirstWaveComputer { for pathModuleId in pathSoFar { if !modulesRequiringRebuild.contains(pathModuleId) && !isMainModule { - let pathModuleInfo = try moduleDependencyGraph.moduleInfo(of: pathModuleId) reporter.reportExplicitDependencyWillBeReBuilt(pathModuleId.moduleNameForDiagnostic, reason: "Invalidated by downstream dependency") }