@@ -73,36 +73,6 @@ private func checkExplicitModuleBuildJobDependencies(job: Job,
73
73
moduleInfo : ModuleInfo ,
74
74
dependencyGraph: InterModuleDependencyGraph
75
75
) throws {
76
- var validateModuleMapCommandLineDependency : ( ModuleDependencyId , ModuleInfo ) throws -> Void = { dependencyId, dependencyInfo in
77
- // Load the dependency JSON and verify this dependency was encoded correctly
78
- let explicitDepsFlag =
79
- SwiftDriver . Job. ArgTemplate. flag ( String ( " -explicit-swift-module-map-file " ) )
80
- XCTAssert ( job. commandLine. contains ( explicitDepsFlag) )
81
- let jsonDepsPathIndex = job. commandLine. firstIndex ( of: explicitDepsFlag)
82
- let jsonDepsPathArg = job. commandLine [ jsonDepsPathIndex! + 1 ]
83
- guard case . path( let jsonDepsPath) = jsonDepsPathArg else {
84
- XCTFail ( " No JSON dependency file path found. " )
85
- return
86
- }
87
- guard case let . temporaryWithKnownContents( _, contents) = jsonDepsPath else {
88
- XCTFail ( " Unexpected path type " )
89
- return
90
- }
91
- let dependencyInfoList = try JSONDecoder ( ) . decode ( Array< SwiftModuleArtifactInfo> . self ,
92
- from: contents)
93
- let dependencyArtifacts =
94
- dependencyInfoList. first ( where: { $0. moduleName == dependencyId. moduleName } )
95
- XCTAssertEqual ( dependencyArtifacts!. modulePath, dependencyInfo. modulePath)
96
- }
97
-
98
-
99
- let validateSwiftCommandLineDependency : ( ModuleDependencyId , ModuleInfo ) -> Void = { dependencyId, dependencyInfo in
100
- let inputModulePath = dependencyInfo. modulePath. path
101
- XCTAssertTrue ( job. inputs. contains ( TypedVirtualPath ( file: inputModulePath, type: . swiftModule) ) )
102
- XCTAssertTrue ( job. commandLine. contains (
103
- . flag( String ( " -swift-module-file= \( dependencyId. moduleName) = \( inputModulePath. description) " ) ) ) )
104
- }
105
-
106
76
let validateClangCommandLineDependency : ( ModuleDependencyId ,
107
77
ModuleInfo ,
108
78
ClangModuleDetails ) -> Void = { dependencyId, dependencyInfo, clangDependencyDetails in
0 commit comments