From 9559158bfeeb274e9ccf1b4563f1b23b42afc493 Mon Sep 17 00:00:00 2001 From: Ignat Beresnev Date: Wed, 5 Jul 2023 10:04:55 +0200 Subject: Decompose Kotlin/Java analysis (#3034) * Extract analysis into separate modules --- .../base/src/main/kotlin/translators/CollectionExtensions.kt | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 plugins/base/src/main/kotlin/translators/CollectionExtensions.kt (limited to 'plugins/base/src/main/kotlin/translators/CollectionExtensions.kt') diff --git a/plugins/base/src/main/kotlin/translators/CollectionExtensions.kt b/plugins/base/src/main/kotlin/translators/CollectionExtensions.kt deleted file mode 100644 index 0de4b5b1..00000000 --- a/plugins/base/src/main/kotlin/translators/CollectionExtensions.kt +++ /dev/null @@ -1,12 +0,0 @@ -package org.jetbrains.dokka.base.translators - -// TODO [beresnev] remove this copy-paste and use the same method from stdlib instead after updating to 1.5 -internal inline fun Iterable.firstNotNullOfOrNull(transform: (T) -> R?): R? { - for (element in this) { - val result = transform(element) - if (result != null) { - return result - } - } - return null -} -- cgit