diff --git a/Samples/AsyncWorker/Sources/AsyncWorkerWorkflow.swift b/Samples/AsyncWorker/Sources/AsyncWorkerWorkflow.swift index a90fcb726..7341e2be2 100644 --- a/Samples/AsyncWorker/Sources/AsyncWorkerWorkflow.swift +++ b/Samples/AsyncWorker/Sources/AsyncWorkerWorkflow.swift @@ -24,8 +24,6 @@ extension AsyncWorkerWorkflow { func makeInitialState() -> AsyncWorkerWorkflow.State { State(model: Model(message: "Initial State")) } - - func workflowDidChange(from previousWorkflow: AsyncWorkerWorkflow, state: inout State) {} } // MARK: Actions diff --git a/Tooling/Templates/Workflow (Verbose).xctemplate/Default/___FILEBASENAME___Workflow.swift b/Tooling/Templates/Workflow (Verbose).xctemplate/Default/___FILEBASENAME___Workflow.swift index f4b44cda9..dda873709 100644 --- a/Tooling/Templates/Workflow (Verbose).xctemplate/Default/___FILEBASENAME___Workflow.swift +++ b/Tooling/Templates/Workflow (Verbose).xctemplate/Default/___FILEBASENAME___Workflow.swift @@ -17,8 +17,6 @@ extension ___VARIABLE_productName___Workflow { func makeInitialState() -> ___VARIABLE_productName___Workflow.State { return State() } - - func workflowDidChange(from previousWorkflow: ___VARIABLE_productName___Workflow, state: inout State) {} } // MARK: Actions diff --git a/Tooling/Templates/Workflow (Verbose).xctemplate/generateWorkerReactiveSwift/___FILEBASENAME___Workflow.swift b/Tooling/Templates/Workflow (Verbose).xctemplate/generateWorkerReactiveSwift/___FILEBASENAME___Workflow.swift index f4b44cda9..dda873709 100644 --- a/Tooling/Templates/Workflow (Verbose).xctemplate/generateWorkerReactiveSwift/___FILEBASENAME___Workflow.swift +++ b/Tooling/Templates/Workflow (Verbose).xctemplate/generateWorkerReactiveSwift/___FILEBASENAME___Workflow.swift @@ -17,8 +17,6 @@ extension ___VARIABLE_productName___Workflow { func makeInitialState() -> ___VARIABLE_productName___Workflow.State { return State() } - - func workflowDidChange(from previousWorkflow: ___VARIABLE_productName___Workflow, state: inout State) {} } // MARK: Actions diff --git a/Tooling/Templates/Workflow (Verbose).xctemplate/generateWorkerRxSwift/___FILEBASENAME___Workflow.swift b/Tooling/Templates/Workflow (Verbose).xctemplate/generateWorkerRxSwift/___FILEBASENAME___Workflow.swift index f4b44cda9..dda873709 100644 --- a/Tooling/Templates/Workflow (Verbose).xctemplate/generateWorkerRxSwift/___FILEBASENAME___Workflow.swift +++ b/Tooling/Templates/Workflow (Verbose).xctemplate/generateWorkerRxSwift/___FILEBASENAME___Workflow.swift @@ -17,8 +17,6 @@ extension ___VARIABLE_productName___Workflow { func makeInitialState() -> ___VARIABLE_productName___Workflow.State { return State() } - - func workflowDidChange(from previousWorkflow: ___VARIABLE_productName___Workflow, state: inout State) {} } // MARK: Actions diff --git a/Workflow/Sources/Workflow.swift b/Workflow/Sources/Workflow.swift index fe62d8715..df4a3f99c 100644 --- a/Workflow/Sources/Workflow.swift +++ b/Workflow/Sources/Workflow.swift @@ -91,8 +91,6 @@ extension Workflow where State == Void { public func makeInitialState() -> State { () } - - public func workflowDidChange(from previousWorkflow: Self, state: inout State) {} } extension Workflow { diff --git a/Workflow/Tests/AnyWorkflowTests.swift b/Workflow/Tests/AnyWorkflowTests.swift index 4c6d56aca..4dee01eb2 100644 --- a/Workflow/Tests/AnyWorkflowTests.swift +++ b/Workflow/Tests/AnyWorkflowTests.swift @@ -127,8 +127,6 @@ private struct OnOutputWorkflow: Workflow { false } - func workflowDidChange(from previousWorkflow: OnOutputWorkflow, state: inout Bool) {} - func render(state: State, context: RenderContext) -> Bool { OnOutputChildWorkflow() .onOutput { state, output in diff --git a/WorkflowCombine/TestingTests/TestingTests.swift b/WorkflowCombine/TestingTests/TestingTests.swift index d9326c6ce..062c92876 100644 --- a/WorkflowCombine/TestingTests/TestingTests.swift +++ b/WorkflowCombine/TestingTests/TestingTests.swift @@ -149,8 +149,6 @@ private struct TestWorkflow: Workflow { .init(mode: .idle, output: "") } - func workflowDidChange(from previousWorkflow: TestWorkflow, state: inout State) {} - func render(state: State, context: RenderContext) { switch state.mode { case .idle: diff --git a/WorkflowConcurrency/TestingTests/TestingTests.swift b/WorkflowConcurrency/TestingTests/TestingTests.swift index 7d3acbf15..12acaaf1f 100644 --- a/WorkflowConcurrency/TestingTests/TestingTests.swift +++ b/WorkflowConcurrency/TestingTests/TestingTests.swift @@ -148,8 +148,6 @@ private struct TestWorkflow: Workflow { .init(mode: .idle, output: "") } - func workflowDidChange(from previousWorkflow: TestWorkflow, state: inout State) {} - func render(state: State, context: RenderContext) { switch state.mode { case .idle: diff --git a/WorkflowReactiveSwift/TestingTests/TestingTests.swift b/WorkflowReactiveSwift/TestingTests/TestingTests.swift index 31600e2c1..fb8e81007 100644 --- a/WorkflowReactiveSwift/TestingTests/TestingTests.swift +++ b/WorkflowReactiveSwift/TestingTests/TestingTests.swift @@ -149,8 +149,6 @@ private struct TestWorkflow: Workflow { .init(mode: .idle, output: "") } - func workflowDidChange(from previousWorkflow: TestWorkflow, state: inout State) {} - func render(state: State, context: RenderContext) { switch state.mode { case .idle: diff --git a/WorkflowRxSwift/TestingTests/TestingTests.swift b/WorkflowRxSwift/TestingTests/TestingTests.swift index fa64f3902..ab1ae802a 100644 --- a/WorkflowRxSwift/TestingTests/TestingTests.swift +++ b/WorkflowRxSwift/TestingTests/TestingTests.swift @@ -140,8 +140,6 @@ private struct TestWorkflow: Workflow { .init(mode: .idle, output: "") } - func workflowDidChange(from previousWorkflow: TestWorkflow, state: inout State) {} - func render(state: State, context: RenderContext) { switch state.mode { case .idle: