aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsebastian.sellmair <sebastian.sellmair@jetbrains.com>2020-08-14 13:04:38 +0200
committerSebastian Sellmair <34319766+sellmair@users.noreply.github.com>2020-08-14 17:51:11 +0200
commitf655b97cffd875a33618f4326e0a890d3e73ce24 (patch)
tree568a585e202b02706af5fbdb295f283353aefaea
parent7f4870484fe9d3ee7f465f77effe58d468b82773 (diff)
downloaddokka-f655b97cffd875a33618f4326e0a890d3e73ce24.tar.gz
dokka-f655b97cffd875a33618f4326e0a890d3e73ce24.tar.bz2
dokka-f655b97cffd875a33618f4326e0a890d3e73ce24.zip
Remove unnecessary "isMultiplatform" util
-rw-r--r--runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/utils.kt11
1 files changed, 0 insertions, 11 deletions
diff --git a/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/utils.kt b/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/utils.kt
index ba311cfe..fc07962d 100644
--- a/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/utils.kt
+++ b/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/utils.kt
@@ -45,17 +45,6 @@ internal fun Project.isAndroidProject() = try {
false
}
-internal fun Project.isMultiplatformProject() = try {
- project.extensions.getByType(KotlinMultiplatformExtension::class.java)
- true
-} catch (e: UnknownDomainObjectException) {
- false
-} catch (e: NoClassDefFoundError) {
- false
-} catch (e: ClassNotFoundException) {
- false
-}
-
internal fun KotlinTarget.isAndroidTarget() = this.platformType == KotlinPlatformType.androidJvm
internal fun <T : Any> NamedDomainObjectContainer<T>.maybeCreate(name: String, configuration: T.() -> Unit): T {