Skip to content

Commit

Permalink
Actions-Interceptor-leftovers-cleanup (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
KazaiMazai authored Sep 9, 2024
1 parent f5893b1 commit 232d31a
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 5 deletions.
3 changes: 0 additions & 3 deletions Sources/Puredux/Store/Core/CoreStore.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
import Dispatch
import Foundation


public typealias Interceptor<Action> = (Action, @escaping Dispatch<Action>) -> Void

typealias StoreID = UUID

final class CoreStore<State, Action>: @unchecked Sendable where State: Sendable,
Expand Down
1 change: 0 additions & 1 deletion Sources/Puredux/Store/Core/StoreNode.swift
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ final class StoreNode<ParentStore, LocalState, State, Action>: @unchecked Sendab

extension StoreNode where LocalState == State {
static func initRootStore(initialState: State,
interceptor: @escaping (Action, @escaping Dispatch<Action>) -> Void = { _, _ in },
qos: DispatchQoS = .userInteractive,
reducer: @escaping Reducer<State, Action>) -> RootStoreNode<State, Action> {

Expand Down
1 change: 0 additions & 1 deletion Sources/Puredux/Store/StateStore.swift
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ public extension StateStore {

self.init(storeObject: RootStoreNode.initRootStore(
initialState: initialState,
interceptor: { _, _ in },
qos: qos,
reducer: reducer
))
Expand Down

0 comments on commit 232d31a

Please sign in to comment.