Skip to content

Commit a9085c3

Browse files
committed
Remove unused consoleBehavior from Execution
1 parent b628c68 commit a9085c3

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
@@ -145,8 +145,7 @@ extension Configuration {
145145
threadHandle: processInfo.hThread
146146
)
147147
let execution = Execution(
148-
processIdentifier: pid,
149-
consoleBehavior: self.platformOptions.consoleBehavior
148+
processIdentifier: pid
150149
)
151150

152151
do {
@@ -290,8 +289,7 @@ extension Configuration {
290289
threadHandle: processInfo.hThread
291290
)
292291
let execution = Execution(
293-
processIdentifier: pid,
294-
consoleBehavior: self.platformOptions.consoleBehavior
292+
processIdentifier: pid
295293
)
296294

297295
do {

0 commit comments

Comments
 (0)