Skip to content

Commit 3670253

Browse files
Remove unused chain
1 parent e1d8121 commit 3670253

File tree

3 files changed

+1
-34
lines changed

3 files changed

+1
-34
lines changed

Sources/Chain.swift

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff 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-
219
public final class RootChain: Chain {
2210
private let map: SubscriptionMap
2311

Sources/Dispatcher.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff 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) {

Tests/ChainTests.swift

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)