Skip to content

Commit 745d4a7

Browse files
Remove unused code and imports (#266)
1 parent 4b97628 commit 745d4a7

15 files changed

Lines changed: 2 additions & 114 deletions

Sources/Subprocess/AsyncBufferSequence.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import SystemPackage
1616
#endif
1717

1818
#if !os(Windows)
19-
internal import Dispatch
2019

2120
#if SubprocessFoundation
2221

Sources/Subprocess/IO/AsyncIO+Windows.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import SystemPackage
2121

2222
import _SubprocessCShims
2323
import Synchronization
24-
internal import Dispatch
2524
@preconcurrency import WinSDK
2625

2726
private typealias SignalStream = AsyncThrowingStream<DWORD, any Error>

Sources/Subprocess/Platforms/Subprocess+Darwin.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
#if canImport(Darwin)
1313

1414
public import Darwin
15-
internal import Dispatch
1615
#if canImport(System)
1716
import System
1817
#else

Sources/Subprocess/Platforms/Subprocess+Linux.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ import Android
2525
import Musl
2626
#endif
2727

28-
internal import Dispatch
29-
3028
import Synchronization
3129
import _SubprocessCShims
3230

Sources/Subprocess/Platforms/Subprocess+Unix.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ public import Glibc
2929
public import Musl
3030
#endif
3131

32-
@preconcurrency internal import Dispatch
33-
3432
// MARK: - Signals
3533

3634
/// Signals are standardized messages sent to a running program to

Sources/Subprocess/Platforms/Subprocess+Windows.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
#if canImport(WinSDK)
1313

1414
@preconcurrency public import WinSDK
15-
internal import Dispatch
1615
#if canImport(System)
1716
import System
1817
#else

Sources/Subprocess/SubprocessFoundation/Input+Foundation.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ import System
2525
import SystemPackage
2626
#endif
2727

28-
internal import Dispatch
29-
3028
/// An input type that reads from a `Data` value.
3129
public struct DataInput: InputProtocol {
3230
private let data: Data

Sources/Subprocess/SubprocessFoundation/Span+SubprocessFoundation.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ import Foundation
1919
import FoundationEssentials
2020
#endif // canImport(Darwin)
2121

22-
internal import Dispatch
23-
2422
extension Data {
2523
init(_ s: borrowing RawSpan) {
2624
self = s.withUnsafeBytes { Data($0) }

Sources/Subprocess/Thread.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ import Musl
2222
import WinSDK
2323
#endif
2424

25-
internal import Dispatch
2625
import _SubprocessCShims
2726

2827
#if canImport(Synchronization)

Tests/SubprocessTests/AsyncIOTests.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ import WinSDK
2828
#endif
2929

3030
import Testing
31-
import Dispatch
3231
import Foundation
3332
import TestResources
3433
import _SubprocessCShims
@@ -283,7 +282,7 @@ extension SubprocessAsyncIOTests {
283282

284283
try await group.waitForAll()
285284
// Keep both pipe endpoints alive until both tasks complete,
286-
// preventing the DispatchIO cleanup handler from closing
285+
// preventing the cleanup handler from closing
287286
// a pipe fd while the other task is still using it.
288287
withExtendedLifetime((readTestBed, writeTestBed)) {}
289288
// Teardown

0 commit comments

Comments
 (0)