From 1171a717fe964545546d75fbf27bc306cfa64e73 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Fri, 5 Nov 2021 15:49:39 +0600 Subject: [PATCH] optimize imports --- .../commonMain/kotlin/dev/inmo/micro_utils/common/DiffUtils.kt | 2 -- .../kotlin/dev/inmo/micro_utils/fsm/common/StatesMachine.kt | 3 ++- .../kotlin/dev/inmo/micro_utils/fsm/common/StatesManager.kt | 2 +- .../kotlin/dev/inmo/micro_utils/fsm/common/dsl/FSMBuilder.kt | 3 ++- .../micro_utils/fsm/common/managers/InMemoryStatesManager.kt | 3 --- 5 files changed, 5 insertions(+), 8 deletions(-) diff --git a/common/src/commonMain/kotlin/dev/inmo/micro_utils/common/DiffUtils.kt b/common/src/commonMain/kotlin/dev/inmo/micro_utils/common/DiffUtils.kt index 221237b4fee..af15eb4ca00 100644 --- a/common/src/commonMain/kotlin/dev/inmo/micro_utils/common/DiffUtils.kt +++ b/common/src/commonMain/kotlin/dev/inmo/micro_utils/common/DiffUtils.kt @@ -2,8 +2,6 @@ package dev.inmo.micro_utils.common -import kotlin.jvm.JvmInline - private inline fun getObject( additional: MutableList, iterator: Iterator diff --git a/fsm/common/src/commonMain/kotlin/dev/inmo/micro_utils/fsm/common/StatesMachine.kt b/fsm/common/src/commonMain/kotlin/dev/inmo/micro_utils/fsm/common/StatesMachine.kt index dcfe420aa82..f31e641a3b0 100644 --- a/fsm/common/src/commonMain/kotlin/dev/inmo/micro_utils/fsm/common/StatesMachine.kt +++ b/fsm/common/src/commonMain/kotlin/dev/inmo/micro_utils/fsm/common/StatesMachine.kt @@ -1,6 +1,7 @@ package dev.inmo.micro_utils.fsm.common -import dev.inmo.micro_utils.coroutines.* +import dev.inmo.micro_utils.coroutines.launchSafelyWithoutExceptions +import dev.inmo.micro_utils.coroutines.subscribeSafelyWithoutExceptions import kotlinx.coroutines.* /** diff --git a/fsm/common/src/commonMain/kotlin/dev/inmo/micro_utils/fsm/common/StatesManager.kt b/fsm/common/src/commonMain/kotlin/dev/inmo/micro_utils/fsm/common/StatesManager.kt index 7ad305f338b..972106c6d83 100644 --- a/fsm/common/src/commonMain/kotlin/dev/inmo/micro_utils/fsm/common/StatesManager.kt +++ b/fsm/common/src/commonMain/kotlin/dev/inmo/micro_utils/fsm/common/StatesManager.kt @@ -1,6 +1,6 @@ package dev.inmo.micro_utils.fsm.common -import kotlinx.coroutines.flow.* +import kotlinx.coroutines.flow.Flow interface StatesManager { val onChainStateUpdated: Flow> diff --git a/fsm/common/src/commonMain/kotlin/dev/inmo/micro_utils/fsm/common/dsl/FSMBuilder.kt b/fsm/common/src/commonMain/kotlin/dev/inmo/micro_utils/fsm/common/dsl/FSMBuilder.kt index aadb53ea5b9..7b10c1c8362 100644 --- a/fsm/common/src/commonMain/kotlin/dev/inmo/micro_utils/fsm/common/dsl/FSMBuilder.kt +++ b/fsm/common/src/commonMain/kotlin/dev/inmo/micro_utils/fsm/common/dsl/FSMBuilder.kt @@ -1,7 +1,8 @@ package dev.inmo.micro_utils.fsm.common.dsl import dev.inmo.micro_utils.fsm.common.* -import dev.inmo.micro_utils.fsm.common.managers.* +import dev.inmo.micro_utils.fsm.common.managers.DefaultStatesManager +import dev.inmo.micro_utils.fsm.common.managers.InMemoryDefaultStatesManagerRepo import kotlin.reflect.KClass class FSMBuilder( diff --git a/fsm/common/src/commonMain/kotlin/dev/inmo/micro_utils/fsm/common/managers/InMemoryStatesManager.kt b/fsm/common/src/commonMain/kotlin/dev/inmo/micro_utils/fsm/common/managers/InMemoryStatesManager.kt index 1e424a0625c..323e895b315 100644 --- a/fsm/common/src/commonMain/kotlin/dev/inmo/micro_utils/fsm/common/managers/InMemoryStatesManager.kt +++ b/fsm/common/src/commonMain/kotlin/dev/inmo/micro_utils/fsm/common/managers/InMemoryStatesManager.kt @@ -1,10 +1,7 @@ package dev.inmo.micro_utils.fsm.common.managers import dev.inmo.micro_utils.fsm.common.State -import dev.inmo.micro_utils.fsm.common.StatesManager import kotlinx.coroutines.flow.* -import kotlinx.coroutines.sync.Mutex -import kotlinx.coroutines.sync.withLock /** * Creates [DefaultStatesManager] with [InMemoryDefaultStatesManagerRepo]