Skip to content

Commit 1741b4c

Browse files
authored
[NFC] Remove unused imports of TSCUtility.Diagnostics{Engine,} (#7019)
Since TSC is deprecated, we should avoid redundant imports for its modules and types.
1 parent 1491d34 commit 1741b4c

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

Tests/PackageLoadingTests/PD_4_2_LoadingTests.swift

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import PackageModel
1717
import SPMTestSupport
1818
import XCTest
1919

20-
import class TSCBasic.DiagnosticsEngine
2120
import class TSCBasic.InMemoryFileSystem
2221
import enum TSCBasic.PathValidationError
2322

@@ -776,9 +775,3 @@ class PackageDescription4_2LoadingTests: PackageDescriptionLoadingTests {
776775
#endif
777776
}
778777
}
779-
780-
extension DiagnosticsEngine {
781-
public var hasWarnings: Bool {
782-
return diagnostics.contains(where: { $0.message.behavior == .warning })
783-
}
784-
}

Tests/WorkspaceTests/WorkspaceTests.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ import XCTest
2626
import struct TSCBasic.ByteString
2727
import class TSCBasic.InMemoryFileSystem
2828

29-
import enum TSCUtility.Diagnostics
3029
import struct TSCUtility.Version
3130

3231
final class WorkspaceTests: XCTestCase {

0 commit comments

Comments
 (0)