Skip to content

Commit a770b5f

Browse files
committed
EventStream: remove predicate property in ServerSentEventsDeserializationSequence iterator
1 parent 30433cd commit a770b5f

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

Sources/OpenAPIRuntime/EventStreams/ServerSentEventsDecoding.swift

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,19 +58,13 @@ extension ServerSentEventsDeserializationSequence: AsyncSequence {
5858
/// The state machine of the iterator.
5959
var stateMachine: StateMachine
6060

61-
/// A closure that determines whether the given byte chunk should be forwarded to the consumer.
62-
/// - Parameter: A byte chunk.
63-
/// - Returns: `true` if the byte chunk should be forwarded, `false` if this byte chunk is the terminating sequence.
64-
let predicate: (ArraySlice<UInt8>) -> Bool
65-
6661
/// Creates a new sequence.
6762
/// - Parameters:
6863
/// - upstream: The upstream sequence of arbitrary byte chunks.
6964
/// - while: A closure that determines whether the given byte chunk should be forwarded to the consumer.
7065
init(upstream: UpstreamIterator, while predicate: @escaping ((ArraySlice<UInt8>) -> Bool)) {
7166
self.upstream = upstream
7267
self.stateMachine = .init(while: predicate)
73-
self.predicate = predicate
7468
}
7569

7670
/// Asynchronously advances to the next element and returns it, or ends the

0 commit comments

Comments
 (0)