aboutsummaryrefslogtreecommitdiff
path: root/plugins/versioning/src/main/kotlin
diff options
context:
space:
mode:
authoraSemy <897017+aSemy@users.noreply.github.com>2023-04-25 22:27:35 +0200
committerGitHub <noreply@github.com>2023-04-25 22:27:35 +0200
commitfcb2f4ae72bdc62df37e61360d2d206c36717612 (patch)
treefbcbfeae30e3d0ada54299b9f3d7db62a036ad75 /plugins/versioning/src/main/kotlin
parent609c5469bbc0ba3516e760c6e61cf7df2b5c7ff7 (diff)
downloaddokka-fcb2f4ae72bdc62df37e61360d2d206c36717612.tar.gz
dokka-fcb2f4ae72bdc62df37e61360d2d206c36717612.tar.bz2
dokka-fcb2f4ae72bdc62df37e61360d2d206c36717612.zip
Tidy/remove unnecessary imports and suppressions (#2975)
Diffstat (limited to 'plugins/versioning/src/main/kotlin')
-rw-r--r--plugins/versioning/src/main/kotlin/org/jetbrains/dokka/versioning/VersionsNavigationCreator.kt3
-rw-r--r--plugins/versioning/src/main/kotlin/org/jetbrains/dokka/versioning/VersionsOrdering.kt5
2 files changed, 2 insertions, 6 deletions
diff --git a/plugins/versioning/src/main/kotlin/org/jetbrains/dokka/versioning/VersionsNavigationCreator.kt b/plugins/versioning/src/main/kotlin/org/jetbrains/dokka/versioning/VersionsNavigationCreator.kt
index 719d2cf9..ff5722d0 100644
--- a/plugins/versioning/src/main/kotlin/org/jetbrains/dokka/versioning/VersionsNavigationCreator.kt
+++ b/plugins/versioning/src/main/kotlin/org/jetbrains/dokka/versioning/VersionsNavigationCreator.kt
@@ -3,7 +3,6 @@ package org.jetbrains.dokka.versioning
import kotlinx.html.a
import kotlinx.html.div
import kotlinx.html.stream.appendHTML
-import org.jetbrains.dokka.base.renderers.html.strike
import org.jetbrains.dokka.plugability.DokkaContext
import org.jetbrains.dokka.plugability.configuration
import org.jetbrains.dokka.plugability.plugin
@@ -83,4 +82,4 @@ class HtmlVersionsNavigationCreator(private val context: DokkaContext) : Version
versions.minByOrNull { (_, versionLocation) ->
versionLocation.let { position.toRelativeString(it).length }
}
-} \ No newline at end of file
+}
diff --git a/plugins/versioning/src/main/kotlin/org/jetbrains/dokka/versioning/VersionsOrdering.kt b/plugins/versioning/src/main/kotlin/org/jetbrains/dokka/versioning/VersionsOrdering.kt
index f72e2df6..98f2e4ca 100644
--- a/plugins/versioning/src/main/kotlin/org/jetbrains/dokka/versioning/VersionsOrdering.kt
+++ b/plugins/versioning/src/main/kotlin/org/jetbrains/dokka/versioning/VersionsOrdering.kt
@@ -3,9 +3,6 @@ package org.jetbrains.dokka.versioning
import org.apache.maven.artifact.versioning.ComparableVersion
import org.jetbrains.dokka.plugability.DokkaContext
import org.jetbrains.dokka.plugability.configuration
-import org.jetbrains.dokka.versioning.VersionId
-import org.jetbrains.dokka.versioning.VersioningConfiguration
-import org.jetbrains.dokka.versioning.VersioningPlugin
fun interface VersionsOrdering {
fun order(records: List<VersionId>): List<VersionId>
@@ -20,4 +17,4 @@ class ByConfigurationVersionOrdering(val dokkaContext: DokkaContext) : VersionsO
class SemVerVersionOrdering : VersionsOrdering {
override fun order(records: List<VersionId>): List<VersionId> =
records.map { it to ComparableVersion(it) }.sortedByDescending { it.second }.map { it.first }
-} \ No newline at end of file
+}