Skip to content

Commit bbb5432

Browse files
committed
Remove unused consoleBehavior from Execution
1 parent 086c8d8 commit bbb5432

File tree

2 files changed

+2
-16
lines changed

2 files changed

+2
-16
lines changed

Sources/Subprocess/Execution.swift

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -34,23 +34,11 @@ public struct Execution: Sendable {
3434
/// The process identifier of the current execution
3535
public let processIdentifier: ProcessIdentifier
3636

37-
#if os(Windows)
38-
internal let consoleBehavior: PlatformOptions.ConsoleBehavior
39-
40-
init(
41-
processIdentifier: ProcessIdentifier,
42-
consoleBehavior: PlatformOptions.ConsoleBehavior
43-
) {
44-
self.processIdentifier = processIdentifier
45-
self.consoleBehavior = consoleBehavior
46-
}
47-
#else
4837
init(
4938
processIdentifier: ProcessIdentifier
5039
) {
5140
self.processIdentifier = processIdentifier
5241
}
53-
#endif // os(Windows)
5442
}
5543

5644
// MARK: - Output Capture

Sources/Subprocess/Platforms/Subprocess+Windows.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,7 @@ extension Configuration {
140140
threadHandle: processInfo.hThread
141141
)
142142
let execution = Execution(
143-
processIdentifier: pid,
144-
consoleBehavior: self.platformOptions.consoleBehavior
143+
processIdentifier: pid
145144
)
146145

147146
do {
@@ -285,8 +284,7 @@ extension Configuration {
285284
threadHandle: processInfo.hThread
286285
)
287286
let execution = Execution(
288-
processIdentifier: pid,
289-
consoleBehavior: self.platformOptions.consoleBehavior
287+
processIdentifier: pid
290288
)
291289

292290
do {

0 commit comments

Comments
 (0)