@@ -457,7 +457,6 @@ extension ModuleDependencyGraph {
457
457
case useIDNode = 4
458
458
case externalDepNode = 5
459
459
case identifierNode = 6
460
- case mapNode = 7
461
460
462
461
/// The human-readable name of this record.
463
462
///
@@ -478,8 +477,6 @@ extension ModuleDependencyGraph {
478
477
return " EXTERNAL_DEP_NODE "
479
478
case . identifierNode:
480
479
return " IDENTIFIER_NODE "
481
- case . mapNode:
482
- return " MAP_NODE "
483
480
}
484
481
}
485
482
}
@@ -531,7 +528,6 @@ extension ModuleDependencyGraph {
531
528
private var identifiers : [ String ] = [ " " ]
532
529
private var currentDefKey : DependencyKey ? = nil
533
530
private var nodeUses : [ ( DependencyKey , Int ) ] = [ ]
534
- private var inputDependencySourceMap : [ ( TypedVirtualPath , DependencySource ) ] = [ ]
535
531
public private( set) var allNodes : [ Node ] = [ ]
536
532
537
533
init ? ( _ info: IncrementalCompilationState . IncrementalDependencyAndInputSetup ) {
@@ -638,27 +634,6 @@ extension ModuleDependencyGraph {
638
634
throw ReadError . malformedDependsOnRecord
639
635
}
640
636
self . nodeUses. append ( ( key, Int ( record. fields [ 0 ] ) ) )
641
- case . mapNode:
642
- guard record. fields. count == 2 ,
643
- record. fields [ 0 ] < identifiers. count,
644
- record. fields [ 1 ] < identifiers. count
645
- else {
646
- throw ReadError . malformedModuleDepGraphNodeRecord
647
- }
648
- let inputPathString = identifiers [ Int ( record. fields [ 0 ] ) ]
649
- let dependencySourcePathString = identifiers [ Int ( record. fields [ 1 ] ) ]
650
- let inputHandle = try VirtualPath . intern ( path: inputPathString)
651
- let inputPath = VirtualPath . lookup ( inputHandle)
652
- let dependencySourceHandle = try VirtualPath . intern ( path: dependencySourcePathString)
653
- let dependencySourcePath = VirtualPath . lookup ( dependencySourceHandle)
654
- guard inputPath. extension == FileType . swift. rawValue,
655
- dependencySourcePath. extension == FileType . swiftDeps. rawValue,
656
- let dependencySource = DependencySource ( dependencySourceHandle)
657
- else {
658
- throw ReadError . malformedMapRecord
659
- }
660
- let input = TypedVirtualPath ( file: inputHandle, type: . swift)
661
- inputDependencySourceMap. append ( ( input, dependencySource) )
662
637
case . externalDepNode:
663
638
guard record. fields. count == 2 ,
664
639
record. fields [ 0 ] < identifiers. count,
@@ -784,7 +759,6 @@ extension ModuleDependencyGraph {
784
759
self . emitRecordID ( . useIDNode)
785
760
self . emitRecordID ( . externalDepNode)
786
761
self . emitRecordID ( . identifierNode)
787
- self . emitRecordID ( . mapNode)
788
762
}
789
763
}
790
764
@@ -846,11 +820,6 @@ extension ModuleDependencyGraph {
846
820
}
847
821
}
848
822
849
- graph. inputDependencySourceMap. enumerateToSerializePriors { input, dependencySource in
850
- self . addIdentifier ( input. file. name)
851
- self . addIdentifier ( dependencySource. file. name)
852
- }
853
-
854
823
for edF in graph. fingerprintedExternalDependencies {
855
824
self . addIdentifier ( edF. externalDependency. fileName)
856
825
}
@@ -922,13 +891,6 @@ extension ModuleDependencyGraph {
922
891
// identifier data
923
892
. blob
924
893
] )
925
- self . abbreviate ( . mapNode, [
926
- . literal( RecordID . mapNode. rawValue) ,
927
- // input name
928
- . vbr( chunkBitWidth: 13 ) ,
929
- // dependencySource name
930
- . vbr( chunkBitWidth: 13 ) ,
931
- ] )
932
894
}
933
895
934
896
private func abbreviate(
@@ -991,15 +953,6 @@ extension ModuleDependencyGraph {
991
953
}
992
954
}
993
955
}
994
- graph. inputDependencySourceMap. enumerateToSerializePriors {
995
- input, dependencySource in
996
- serializer. stream. writeRecord ( serializer. abbreviations [ . mapNode] !) {
997
- $0. append ( RecordID . mapNode)
998
- $0. append ( serializer. lookupIdentifierCode ( for: input. file. name) )
999
- $0. append ( serializer. lookupIdentifierCode ( for: dependencySource. file. name) )
1000
- }
1001
- }
1002
-
1003
956
for fingerprintedExternalDependency in graph. fingerprintedExternalDependencies {
1004
957
serializer. stream. writeRecord ( serializer. abbreviations [ . externalDepNode] !, {
1005
958
$0. append ( RecordID . externalDepNode)
@@ -1095,7 +1048,6 @@ fileprivate extension DependencyKey.Designator {
1095
1048
extension ModuleDependencyGraph {
1096
1049
func matches( _ other: ModuleDependencyGraph ) -> Bool {
1097
1050
guard nodeFinder. matches ( other. nodeFinder) ,
1098
- inputDependencySourceMap. matches ( other. inputDependencySourceMap) ,
1099
1051
fingerprintedExternalDependencies. matches ( other. fingerprintedExternalDependencies)
1100
1052
else {
1101
1053
return false
@@ -1110,12 +1062,6 @@ extension Set where Element == ModuleDependencyGraph.Node {
1110
1062
}
1111
1063
}
1112
1064
1113
- extension InputDependencySourceMap {
1114
- fileprivate func matches( _ other: Self ) -> Bool {
1115
- self == other
1116
- }
1117
- }
1118
-
1119
1065
extension Set where Element == FingerprintedExternalDependency {
1120
1066
fileprivate func matches( _ other: Self ) -> Bool {
1121
1067
self == other
0 commit comments