From fe2e3d105fa294919110543ca808db75510a476c Mon Sep 17 00:00:00 2001 From: RoB Murdock Date: Tue, 18 Jul 2023 22:37:32 -0400 Subject: [PATCH] removing dispatching executor type --- .../action/DispatchingActionExecutor.kt | 20 ------------------- .../GameExamplesTest.kt | 3 --- 2 files changed, 23 deletions(-) delete mode 100644 libraries/action/src/commonMain/kotlin/com/zegreatrob/coupling/action/DispatchingActionExecutor.kt diff --git a/libraries/action/src/commonMain/kotlin/com/zegreatrob/coupling/action/DispatchingActionExecutor.kt b/libraries/action/src/commonMain/kotlin/com/zegreatrob/coupling/action/DispatchingActionExecutor.kt deleted file mode 100644 index 97982bbfe6..0000000000 --- a/libraries/action/src/commonMain/kotlin/com/zegreatrob/coupling/action/DispatchingActionExecutor.kt +++ /dev/null @@ -1,20 +0,0 @@ -package com.zegreatrob.coupling.action - -import com.zegreatrob.testmints.action.ExecutableAction -import com.zegreatrob.testmints.action.ExecutableActionExecuteSyntax -import com.zegreatrob.testmints.action.ExecutableActionExecutor -import com.zegreatrob.testmints.action.async.SuspendAction -import com.zegreatrob.testmints.action.async.SuspendActionExecuteSyntax -import com.zegreatrob.testmints.action.async.SuspendActionExecutor - -interface DispatchingActionExecutor : - ExecutableActionExecutor, - SuspendActionExecutor, - ExecutableActionExecuteSyntax, - SuspendActionExecuteSyntax { - - val actionDispatcher: D - - override fun invoke(action: ExecutableAction): R = actionDispatcher.execute(action) - override suspend fun invoke(action: SuspendAction): R = actionDispatcher.execute(action) -} diff --git a/server/action/src/commonTest/kotlin/com/zegreatrob/coupling/server/action/pairassignmentdocument/GameExamplesTest.kt b/server/action/src/commonTest/kotlin/com/zegreatrob/coupling/server/action/pairassignmentdocument/GameExamplesTest.kt index 3a5a92eeef..0aec24e1d7 100644 --- a/server/action/src/commonTest/kotlin/com/zegreatrob/coupling/server/action/pairassignmentdocument/GameExamplesTest.kt +++ b/server/action/src/commonTest/kotlin/com/zegreatrob/coupling/server/action/pairassignmentdocument/GameExamplesTest.kt @@ -1,7 +1,6 @@ package com.zegreatrob.coupling.server.action.pairassignmentdocument import com.benasher44.uuid.uuid4 -import com.zegreatrob.coupling.action.DispatchingActionExecutor import com.zegreatrob.coupling.action.pairassignmentdocument.AssignPinsAction import com.zegreatrob.coupling.model.flatMap import com.zegreatrob.coupling.model.map @@ -33,13 +32,11 @@ class GameExamplesTest { CreatePairCandidateReportListAction.Dispatcher, ShufflePairsAction.Dispatcher, FindNewPairsAction.Dispatcher, - DispatchingActionExecutor, NextPlayerAction.Dispatcher, AssignPinsAction.Dispatcher, CreatePairCandidateReportAction.Dispatcher, Wheel { override val wheel = this - override val actionDispatcher = this override val cannon = ActionCannon(this) }