diff options
author | aSemy <897017+aSemy@users.noreply.github.com> | 2023-04-25 22:27:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-25 22:27:35 +0200 |
commit | fcb2f4ae72bdc62df37e61360d2d206c36717612 (patch) | |
tree | fbcbfeae30e3d0ada54299b9f3d7db62a036ad75 /plugins/versioning/src/main/kotlin | |
parent | 609c5469bbc0ba3516e760c6e61cf7df2b5c7ff7 (diff) | |
download | dokka-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')
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 +} |