From f655b97cffd875a33618f4326e0a890d3e73ce24 Mon Sep 17 00:00:00 2001 From: "sebastian.sellmair" Date: Fri, 14 Aug 2020 13:04:38 +0200 Subject: Remove unnecessary "isMultiplatform" util --- .../src/main/kotlin/org/jetbrains/dokka/gradle/utils.kt | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'runners/gradle-plugin/src/main/kotlin/org') 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 NamedDomainObjectContainer.maybeCreate(name: String, configuration: T.() -> Unit): T { -- cgit