From 967aa21a9c77e83c77518e49ff8562a67b246c29 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Sat, 11 Apr 2020 13:16:34 +0600 Subject: [PATCH] optimize imports --- postssystem.core/build.gradle | 1 - .../postssystem/core/utils/ByteArrayAllocator.kt | 2 +- .../core/exposed/content/BinaryContentHolderRepo.kt | 3 ++- .../core/exposed/content/SpecialContentHolderRepo.kt | 3 ++- .../postssystem/core/exposed/ExposedPostsAPICommonTests.kt | 1 - 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/postssystem.core/build.gradle b/postssystem.core/build.gradle index 41a32731..18a32160 100644 --- a/postssystem.core/build.gradle +++ b/postssystem.core/build.gradle @@ -38,7 +38,6 @@ kotlin { dependencies { implementation kotlin('stdlib') api "org.jetbrains.kotlinx:kotlinx-coroutines-core-common:$kotlin_coroutines_version" -// api "org.jetbrains.kotlinx:kotlinx-coroutines-io:$kotlin_io_version" api "org.jetbrains.kotlinx:kotlinx-serialization-runtime-common:$kotlin_serialisation_runtime_version" api "com.soywiz.korlibs.klock:klock:$klockVersion" diff --git a/postssystem.core/src/commonMain/kotlin/com/insanusmokrassar/postssystem/core/utils/ByteArrayAllocator.kt b/postssystem.core/src/commonMain/kotlin/com/insanusmokrassar/postssystem/core/utils/ByteArrayAllocator.kt index 69d419d3..9daedf84 100644 --- a/postssystem.core/src/commonMain/kotlin/com/insanusmokrassar/postssystem/core/utils/ByteArrayAllocator.kt +++ b/postssystem.core/src/commonMain/kotlin/com/insanusmokrassar/postssystem/core/utils/ByteArrayAllocator.kt @@ -1,7 +1,7 @@ package com.insanusmokrassar.postssystem.core.utils import kotlinx.serialization.* -import kotlinx.serialization.builtins.* +import kotlinx.serialization.builtins.ByteArraySerializer typealias ByteArrayAllocator = () -> ByteArray diff --git a/postssystem.exposed/src/main/kotlin/com/insanusmokrassar/postssystem/core/exposed/content/BinaryContentHolderRepo.kt b/postssystem.exposed/src/main/kotlin/com/insanusmokrassar/postssystem/core/exposed/content/BinaryContentHolderRepo.kt index 85d2646c..e6ac3bb7 100644 --- a/postssystem.exposed/src/main/kotlin/com/insanusmokrassar/postssystem/core/exposed/content/BinaryContentHolderRepo.kt +++ b/postssystem.exposed/src/main/kotlin/com/insanusmokrassar/postssystem/core/exposed/content/BinaryContentHolderRepo.kt @@ -1,6 +1,7 @@ package com.insanusmokrassar.postssystem.core.exposed.content -import com.insanusmokrassar.postssystem.core.content.* +import com.insanusmokrassar.postssystem.core.content.BinaryContent +import com.insanusmokrassar.postssystem.core.content.ContentId import org.jetbrains.exposed.sql.* import org.jetbrains.exposed.sql.statements.api.ExposedBlob import org.jetbrains.exposed.sql.transactions.transaction diff --git a/postssystem.exposed/src/main/kotlin/com/insanusmokrassar/postssystem/core/exposed/content/SpecialContentHolderRepo.kt b/postssystem.exposed/src/main/kotlin/com/insanusmokrassar/postssystem/core/exposed/content/SpecialContentHolderRepo.kt index ceb4eb1b..b5821e84 100644 --- a/postssystem.exposed/src/main/kotlin/com/insanusmokrassar/postssystem/core/exposed/content/SpecialContentHolderRepo.kt +++ b/postssystem.exposed/src/main/kotlin/com/insanusmokrassar/postssystem/core/exposed/content/SpecialContentHolderRepo.kt @@ -1,6 +1,7 @@ package com.insanusmokrassar.postssystem.core.exposed.content -import com.insanusmokrassar.postssystem.core.content.* +import com.insanusmokrassar.postssystem.core.content.ContentId +import com.insanusmokrassar.postssystem.core.content.SpecialContent import org.jetbrains.exposed.sql.* import org.jetbrains.exposed.sql.transactions.transaction diff --git a/postssystem.exposed/src/test/kotlin/com/insanusmokrassar/postssystem/core/exposed/ExposedPostsAPICommonTests.kt b/postssystem.exposed/src/test/kotlin/com/insanusmokrassar/postssystem/core/exposed/ExposedPostsAPICommonTests.kt index 45109bdb..b9c884fb 100644 --- a/postssystem.exposed/src/test/kotlin/com/insanusmokrassar/postssystem/core/exposed/ExposedPostsAPICommonTests.kt +++ b/postssystem.exposed/src/test/kotlin/com/insanusmokrassar/postssystem/core/exposed/ExposedPostsAPICommonTests.kt @@ -4,7 +4,6 @@ import com.insanusmokrassar.postssystem.core.post.SimplePost import kotlinx.coroutines.runBlocking import org.jetbrains.exposed.sql.Database import org.jetbrains.exposed.sql.transactions.transactionManager -import org.sqlite.JDBC import java.io.File import java.sql.Connection import kotlin.test.*