diff --git a/Samples/AsyncWorker/Sources/AsyncWorkerWorkflow.swift b/Samples/AsyncWorker/Sources/AsyncWorkerWorkflow.swift index 9bb62d667..8b1d877e5 100644 --- a/Samples/AsyncWorker/Sources/AsyncWorkerWorkflow.swift +++ b/Samples/AsyncWorker/Sources/AsyncWorkerWorkflow.swift @@ -24,8 +24,6 @@ extension AsyncWorkerWorkflow { func makeInitialState() -> AsyncWorkerWorkflow.State { return 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 3f3431ec3..e4984f2b4 100644 --- a/Workflow/Sources/Workflow.swift +++ b/Workflow/Sources/Workflow.swift @@ -91,8 +91,6 @@ extension Workflow where State == Void { public func makeInitialState() -> State { return () } - - public func workflowDidChange(from previousWorkflow: Self, state: inout State) {} } extension Workflow { diff --git a/Workflow/Tests/AnyWorkflowTests.swift b/Workflow/Tests/AnyWorkflowTests.swift index e72a22f43..1be4d87dd 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 7c6c0a2e9..f58564404 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 ea16f282d..265c3cf41 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 0369dedc2..88bd32629 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 4407f6058..8a5cfd53a 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: