Skip to content

Commit 9c75e72

Browse files
committed
[NFC] Remove Unused 'sequenceNumber' and 'node' Fields
Now that we serialize dep graph nodes in one shot, we no longer need this carry-over state.
1 parent 59a4fbf commit 9c75e72

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

Sources/SwiftDriver/IncrementalCompilation/ModuleDependencyGraph.swift

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -339,10 +339,8 @@ extension ModuleDependencyGraph {
339339
var minorVersion: UInt64?
340340
var compilerVersionString: String?
341341

342-
private var node: Node? = nil
343342
// The empty string is hardcoded as identifiers[0]
344343
private var identifiers: [String] = [""]
345-
private var sequenceNumber = 0
346344

347345
init(
348346
diagnosticEngine: DiagnosticsEngine,
@@ -362,13 +360,7 @@ extension ModuleDependencyGraph {
362360
return true
363361
}
364362

365-
mutating func didExitBlock() throws {
366-
// Finalize the current node if needed.
367-
guard let newNode = node else {
368-
return
369-
}
370-
self.finalize(node: newNode)
371-
}
363+
mutating func didExitBlock() throws {}
372364

373365
private func finalize(node newNode: Node) {
374366
let oldNode = self.graph.nodeFinder.insert(newNode)
@@ -421,10 +413,6 @@ extension ModuleDependencyGraph {
421413
let swiftDeps = try swiftDepsStr
422414
.map({ try VirtualPath(path: $0) })
423415
.map(ModuleDependencyGraph.SwiftDeps.init)
424-
node = Node(key: key,
425-
fingerprint: fingerprint,
426-
swiftDeps: swiftDeps)
427-
sequenceNumber += 1
428416
case .externalDepNode:
429417
guard record.fields.count == 1,
430418
record.fields[0] < identifiers.count

0 commit comments

Comments
 (0)