Skip to content

Commit 4d4f18a

Browse files
committed
Drop an Unused Collection
The set of swift files here is only needed to compute the disappeared set. We don't need to keep it around.
1 parent 615dfd5 commit 4d4f18a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Sources/SwiftDriver/IncrementalCompilation/IncrementalCompilationState.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -423,14 +423,12 @@ extension OutputFileMap {
423423
// MARK: SourceFiles
424424
@_spi(Testing) public struct SourceFiles {
425425
let currentInOrder: [TypedVirtualPath]
426-
private let currentSet: Set<VirtualPath>
427-
let previous: Set<VirtualPath>
426+
private let previous: Set<VirtualPath>
428427
let disappeared: [VirtualPath]
429428

430429
init(inputFiles: [TypedVirtualPath], buildRecord: BuildRecord?) {
431430
self.currentInOrder = inputFiles.filter {$0.type == .swift}
432431
let currentSet = Set(currentInOrder.map {$0.file} )
433-
self.currentSet = currentSet
434432
self.previous = buildRecord.map {
435433
Set($0.inputInfos.keys)
436434
} ?? Set()

0 commit comments

Comments
 (0)