Skip to content

[NFC] Remove unused imports of TSCUtility.Diagnostics{Engine,} #7019

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions Tests/PackageLoadingTests/PD_4_2_LoadingTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import PackageModel
import SPMTestSupport
import XCTest

import class TSCBasic.DiagnosticsEngine
import class TSCBasic.InMemoryFileSystem
import enum TSCBasic.PathValidationError

Expand Down Expand Up @@ -776,9 +775,3 @@ class PackageDescription4_2LoadingTests: PackageDescriptionLoadingTests {
#endif
}
}

extension DiagnosticsEngine {
public var hasWarnings: Bool {
return diagnostics.contains(where: { $0.message.behavior == .warning })
}
}
1 change: 0 additions & 1 deletion Tests/WorkspaceTests/WorkspaceTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import XCTest
import struct TSCBasic.ByteString
import class TSCBasic.InMemoryFileSystem

import enum TSCUtility.Diagnostics
import struct TSCUtility.Version

final class WorkspaceTests: XCTestCase {
Expand Down