aboutsummaryrefslogtreecommitdiff
path: root/plugins/base
diff options
context:
space:
mode:
authorIgnat Beresnev <ignat.beresnev@jetbrains.com>2023-07-07 10:39:24 +0200
committerGitHub <noreply@github.com>2023-07-07 10:39:24 +0200
commitf23a4a9e72b372e94f28fa95d3ca595e9945857a (patch)
tree8ea5ede386b7dfe0ba01c491e5d8e9298886190f /plugins/base
parentc075c9570777d0946ba48ad88171379b52733416 (diff)
downloaddokka-f23a4a9e72b372e94f28fa95d3ca595e9945857a.tar.gz
dokka-f23a4a9e72b372e94f28fa95d3ca595e9945857a.tar.bz2
dokka-f23a4a9e72b372e94f28fa95d3ca595e9945857a.zip
Remove a copy-pasted function (#3060)
Diffstat (limited to 'plugins/base')
-rw-r--r--plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt b/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt
index fa343eec..6885efc5 100644
--- a/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt
+++ b/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt
@@ -15,6 +15,7 @@ import org.jetbrains.dokka.base.resolvers.anchors.SymbolAnchorHint
import org.jetbrains.dokka.base.resolvers.local.DokkaBaseLocationProvider
import org.jetbrains.dokka.base.templating.*
import org.jetbrains.dokka.base.transformers.documentables.CallableExtensions
+import org.jetbrains.dokka.base.translators.documentables.shouldDocumentConstructors
import org.jetbrains.dokka.links.DRI
import org.jetbrains.dokka.model.*
import org.jetbrains.dokka.model.properties.PropertyContainer
@@ -66,7 +67,6 @@ open class HtmlRenderer(
private fun createTabsForClasslikes(page: ClasslikePage): List<ContentTab> {
val documentables = page.documentables
- fun List<Documentable>.shouldDocumentConstructors() = !this.any { it is DAnnotation }
val csEnum = documentables.filterIsInstance<DEnum>()
val csWithConstructor = documentables.filterIsInstance<WithConstructors>()
val scopes = documentables.filterIsInstance<WithScope>()