File tree Expand file tree Collapse file tree 3 files changed +1
-34
lines changed Expand file tree Collapse file tree 3 files changed +1
-34
lines changed Original file line number Diff line number Diff line change @@ -6,18 +6,6 @@ public protocol Chain {
66 var proceed : Next { get }
77}
88
9- public final class ForwardingChain : Chain {
10- private let next : Next
11-
12- public var proceed : Next {
13- { self . next ( $0) }
14- }
15-
16- public init ( next: @escaping Next ) {
17- self . next = next
18- }
19- }
20-
219public final class RootChain : Chain {
2210 private let map : SubscriptionMap
2311
Original file line number Diff line number Diff line change @@ -16,14 +16,12 @@ public final class Dispatcher {
1616 private let internalQueue = DispatchQueue ( label: " MiniSwift " , qos: . userInitiated)
1717 private var subscriptionMap = SubscriptionMap ( )
1818 private var interceptors = [ Interceptor] ( )
19- private let root : RootChain
2019 private var chain : Chain
2120 private var dispatching = false
2221 private var subscriptionCounter = 0
2322
2423 public init ( ) {
25- root = RootChain ( map: subscriptionMap)
26- chain = root
24+ chain = RootChain ( map: subscriptionMap)
2725 }
2826
2927 public func register( interceptor: Interceptor ) {
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments