Skip to content

Commit 42c57c0

Browse files
committed
Remove the empty workflowDidChange(from previousWorkflow:state:) method from Xcode project templates and tests.
1 parent a29d9d1 commit 42c57c0

File tree

9 files changed

+0
-18
lines changed

9 files changed

+0
-18
lines changed

Samples/AsyncWorker/Sources/AsyncWorkerWorkflow.swift

-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ extension AsyncWorkerWorkflow {
2424
func makeInitialState() -> AsyncWorkerWorkflow.State {
2525
return State(model: Model(message: "Initial State"))
2626
}
27-
28-
func workflowDidChange(from previousWorkflow: AsyncWorkerWorkflow, state: inout State) {}
2927
}
3028

3129
// MARK: Actions

Tooling/Templates/Workflow (Verbose).xctemplate/Default/___FILEBASENAME___Workflow.swift

-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ extension ___VARIABLE_productName___Workflow {
1717
func makeInitialState() -> ___VARIABLE_productName___Workflow.State {
1818
return State()
1919
}
20-
21-
func workflowDidChange(from previousWorkflow: ___VARIABLE_productName___Workflow, state: inout State) {}
2220
}
2321

2422
// MARK: Actions

Tooling/Templates/Workflow (Verbose).xctemplate/generateWorkerReactiveSwift/___FILEBASENAME___Workflow.swift

-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ extension ___VARIABLE_productName___Workflow {
1717
func makeInitialState() -> ___VARIABLE_productName___Workflow.State {
1818
return State()
1919
}
20-
21-
func workflowDidChange(from previousWorkflow: ___VARIABLE_productName___Workflow, state: inout State) {}
2220
}
2321

2422
// MARK: Actions

Tooling/Templates/Workflow (Verbose).xctemplate/generateWorkerRxSwift/___FILEBASENAME___Workflow.swift

-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ extension ___VARIABLE_productName___Workflow {
1717
func makeInitialState() -> ___VARIABLE_productName___Workflow.State {
1818
return State()
1919
}
20-
21-
func workflowDidChange(from previousWorkflow: ___VARIABLE_productName___Workflow, state: inout State) {}
2220
}
2321

2422
// MARK: Actions

Workflow/Tests/AnyWorkflowTests.swift

-2
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,6 @@ private struct OnOutputWorkflow: Workflow {
127127
false
128128
}
129129

130-
func workflowDidChange(from previousWorkflow: OnOutputWorkflow, state: inout Bool) {}
131-
132130
func render(state: State, context: RenderContext<OnOutputWorkflow>) -> Bool {
133131
OnOutputChildWorkflow()
134132
.onOutput { state, output in

WorkflowCombine/TestingTests/TestingTests.swift

-2
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,6 @@ private struct TestWorkflow: Workflow {
149149
.init(mode: .idle, output: "")
150150
}
151151

152-
func workflowDidChange(from previousWorkflow: TestWorkflow, state: inout State) {}
153-
154152
func render(state: State, context: RenderContext<TestWorkflow>) {
155153
switch state.mode {
156154
case .idle:

WorkflowConcurrency/TestingTests/TestingTests.swift

-2
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,6 @@ private struct TestWorkflow: Workflow {
148148
.init(mode: .idle, output: "")
149149
}
150150

151-
func workflowDidChange(from previousWorkflow: TestWorkflow, state: inout State) {}
152-
153151
func render(state: State, context: RenderContext<TestWorkflow>) {
154152
switch state.mode {
155153
case .idle:

WorkflowReactiveSwift/TestingTests/TestingTests.swift

-2
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,6 @@ private struct TestWorkflow: Workflow {
149149
.init(mode: .idle, output: "")
150150
}
151151

152-
func workflowDidChange(from previousWorkflow: TestWorkflow, state: inout State) {}
153-
154152
func render(state: State, context: RenderContext<TestWorkflow>) {
155153
switch state.mode {
156154
case .idle:

WorkflowRxSwift/TestingTests/TestingTests.swift

-2
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,6 @@ private struct TestWorkflow: Workflow {
140140
.init(mode: .idle, output: "")
141141
}
142142

143-
func workflowDidChange(from previousWorkflow: TestWorkflow, state: inout State) {}
144-
145143
func render(state: State, context: RenderContext<TestWorkflow>) {
146144
switch state.mode {
147145
case .idle:

0 commit comments

Comments
 (0)