From aee7a8e76f2d593a6ba73db1f475acca68b7d693 Mon Sep 17 00:00:00 2001 From: Simon Ogorodnik Date: Wed, 3 Oct 2018 04:18:03 +0300 Subject: Don't show platforms on package and module pages --- core/src/main/kotlin/Formats/StructuredFormatService.kt | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'core') diff --git a/core/src/main/kotlin/Formats/StructuredFormatService.kt b/core/src/main/kotlin/Formats/StructuredFormatService.kt index 67a2f293..e12a7923 100644 --- a/core/src/main/kotlin/Formats/StructuredFormatService.kt +++ b/core/src/main/kotlin/Formats/StructuredFormatService.kt @@ -344,7 +344,6 @@ abstract class StructuredOutputBuilder(val to: StringBuilder, val packageName = if (singleNode.name.isEmpty()) "" else singleNode.name appendHeader(2) { appendText("Package $packageName") } } - singleNode.appendPlatforms() appendContent(singleNode.content) } else { val breakdownByName = nodes.groupBy { node -> node.name } @@ -509,18 +508,7 @@ abstract class StructuredOutputBuilder(val to: StringBuilder, } } - private fun DocumentationNode.appendPlatforms() { - val platforms = actualPlatforms - if (platforms.isEmpty()) return - appendParagraph { - appendStrong { to.append("WTF: Platform and version requirements:") } - to.append(" " + platforms.joinToString()) - } - } - - val DocumentationNode.actualPlatforms: Collection - get() = effectivePlatformAndVersion(listOf(this)) // protected fun platformsOfItems(items: List): Set { -- cgit