From c1c33cceb11391bf4fffe3eda7b190c86afd4c6c Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Tue, 8 Nov 2022 14:17:41 +0600 Subject: [PATCH] remove deprecations --- .../repos/exposed/AbstractExposedWriteCRUDRepo.kt | 8 -------- .../exposed/keyvalue/AbstractExposedKeyValueRepo.kt | 9 --------- 2 files changed, 17 deletions(-) diff --git a/repos/exposed/src/jvmMain/kotlin/dev/inmo/micro_utils/repos/exposed/AbstractExposedWriteCRUDRepo.kt b/repos/exposed/src/jvmMain/kotlin/dev/inmo/micro_utils/repos/exposed/AbstractExposedWriteCRUDRepo.kt index c6587d7d01c..3639add9439 100644 --- a/repos/exposed/src/jvmMain/kotlin/dev/inmo/micro_utils/repos/exposed/AbstractExposedWriteCRUDRepo.kt +++ b/repos/exposed/src/jvmMain/kotlin/dev/inmo/micro_utils/repos/exposed/AbstractExposedWriteCRUDRepo.kt @@ -50,14 +50,6 @@ abstract class AbstractExposedWriteCRUDRepo( val id = createAndInsertId(value, it) update(id, value, it as UpdateBuilder) } - @Deprecated( - "Replace its \"it\" parameter type with \"UpdateBuilder\" to actualize method signature. Method with current signature will be removed soon and do not recommended to override anymore" - ) - protected open fun update(id: IdType, value: InputValueType, it: UpdateStatement) = update( - id, - value, - it as UpdateBuilder - ) protected open suspend fun onBeforeCreate(value: List) {} diff --git a/repos/exposed/src/jvmMain/kotlin/dev/inmo/micro_utils/repos/exposed/keyvalue/AbstractExposedKeyValueRepo.kt b/repos/exposed/src/jvmMain/kotlin/dev/inmo/micro_utils/repos/exposed/keyvalue/AbstractExposedKeyValueRepo.kt index b1e346b451d..cb24c23f14e 100644 --- a/repos/exposed/src/jvmMain/kotlin/dev/inmo/micro_utils/repos/exposed/keyvalue/AbstractExposedKeyValueRepo.kt +++ b/repos/exposed/src/jvmMain/kotlin/dev/inmo/micro_utils/repos/exposed/keyvalue/AbstractExposedKeyValueRepo.kt @@ -27,15 +27,6 @@ abstract class AbstractExposedKeyValueRepo( update(k, v, it as UpdateBuilder) } - @Deprecated( - "Replace its \"it\" parameter type with \"UpdateBuilder\" to actualize method signature. Method with current signature will be removed soon and do not recommended to override anymore" - ) - protected open fun update(k: Key, v: Value, it: UpdateStatement) = update( - k, - v, - it as UpdateBuilder - ) - override suspend fun set(toSet: Map) { transaction(database) { toSet.mapNotNull { (k, v) ->