@@ -28,7 +28,6 @@ public protocol OutputProtocol: Sendable, ~Copyable {
28
28
29
29
#if SubprocessSpan
30
30
/// Convert the output from span to expected output type
31
- @available ( SubprocessSpan, * )
32
31
func output( from span: RawSpan ) throws -> OutputType
33
32
#endif
34
33
@@ -113,7 +112,6 @@ public struct StringOutput<Encoding: Unicode.Encoding>: OutputProtocol {
113
112
public let maxSize : Int
114
113
115
114
#if SubprocessSpan
116
- @available ( SubprocessSpan, * )
117
115
public func output( from span: RawSpan ) throws -> String ? {
118
116
// FIXME: Span to String
119
117
var array : [ UInt8 ] = [ ]
@@ -153,7 +151,6 @@ public struct BytesOutput: OutputProtocol {
153
151
}
154
152
155
153
#if SubprocessSpan
156
- @available ( SubprocessSpan, * )
157
154
public func output( from span: RawSpan ) throws -> [ UInt8 ] {
158
155
fatalError ( " Not implemented " )
159
156
}
@@ -227,7 +224,6 @@ extension OutputProtocol where Self == BytesOutput {
227
224
228
225
// MARK: - Span Default Implementations
229
226
#if SubprocessSpan
230
- @available ( SubprocessSpan, * )
231
227
extension OutputProtocol {
232
228
public func output( from buffer: some Sequence < UInt8 > ) throws -> OutputType {
233
229
guard let rawBytes: UnsafeRawBufferPointer = buffer as? UnsafeRawBufferPointer else {
@@ -281,7 +277,6 @@ extension OutputProtocol where OutputType == Void {
281
277
282
278
#if SubprocessSpan
283
279
/// Convert the output from Data to expected output type
284
- @available ( SubprocessSpan, * )
285
280
public func output( from span: RawSpan ) throws {
286
281
// noop
287
282
}
@@ -293,7 +288,6 @@ extension OutputProtocol where OutputType == Void {
293
288
}
294
289
295
290
#if SubprocessSpan
296
- @available ( SubprocessSpan, * )
297
291
extension OutputProtocol {
298
292
#if os(Windows)
299
293
internal func output( from data: [ UInt8 ] ) throws -> OutputType {
0 commit comments