From 1a45f4ccf71101979a5988838df714bd5852cac5 Mon Sep 17 00:00:00 2001 From: Ignat Beresnev Date: Tue, 7 Feb 2023 19:04:50 +0100 Subject: Remove an unused function (#2840) The creation of source set buttons was moved to the `source_set_selector.ftl` template --- .../src/main/kotlin/renderers/html/HtmlRenderer.kt | 23 ---------------------- 1 file changed, 23 deletions(-) (limited to 'plugins/base') diff --git a/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt b/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt index 48ebe93f..73fd07e0 100644 --- a/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt +++ b/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt @@ -143,29 +143,6 @@ open class HtmlRenderer( } } - private fun FlowContent.filterButtons(page: PageNode) { - if (shouldRenderSourceSetBubbles && page is ContentPage) { - div(classes = "filter-section") { - id = "filter-section" - page.content.withDescendants().flatMap { it.sourceSets }.distinct() - .sortedBy { it.comparableKey }.forEach { - button(classes = "platform-tag platform-selector") { - attributes["data-active"] = "" - attributes["data-filter"] = it.sourceSetIDs.merged.toString() - when (it.platform.key) { - "common" -> classes = classes + "common-like" - "native" -> classes = classes + "native-like" - "jvm" -> classes = classes + "jvm-like" - "js" -> classes = classes + "js-like" - "wasm" -> classes = classes + "wasm-like" - } - text(it.name) - } - } - } - } - } - private fun FlowContent.copyButton() = span(classes = "top-right-position") { span("copy-icon") copiedPopup("Content copied to clipboard", "popup-to-left") -- cgit