Remove obsolete JvmVersion annotation from generated functions
These functions are already generated in jvm-only file
This commit is contained in:
@@ -99,7 +99,6 @@ object Snapshots : TemplateGroupBase() {
|
||||
include(CharSequences)
|
||||
platforms(Platform.JVM)
|
||||
} builder {
|
||||
jvmOnly = true
|
||||
typeParam("T: Comparable<T>")
|
||||
doc { "Returns a [SortedSet] of all ${f.element.pluralize()}." }
|
||||
returns("SortedSet<T>")
|
||||
@@ -110,7 +109,6 @@ object Snapshots : TemplateGroupBase() {
|
||||
include(Iterables, ArraysOfObjects, Sequences)
|
||||
platforms(Platform.JVM)
|
||||
} builder {
|
||||
jvmOnly = true
|
||||
doc {
|
||||
"""
|
||||
Returns a [SortedSet] of all ${f.element.pluralize()}.
|
||||
|
||||
@@ -19,11 +19,6 @@ package templates
|
||||
import templates.Family.*
|
||||
|
||||
object PlatformSpecialized : TemplateGroupBase() {
|
||||
init {
|
||||
defaultBuilder {
|
||||
jvmOnly = true
|
||||
}
|
||||
}
|
||||
|
||||
val f_fill = fn("fill(element: T, fromIndex: Int = 0, toIndex: Int = size)") {
|
||||
platforms(Platform.JVM)
|
||||
|
||||
@@ -59,8 +59,6 @@ class MemberBuilder(
|
||||
var deprecate: Deprecation? = null; private set
|
||||
var since: String? = null; private set
|
||||
var platformName: String? = null; private set
|
||||
@Deprecated("Use platforms when building template")
|
||||
var jvmOnly: Boolean = false
|
||||
|
||||
var visibility: String? = null; private set
|
||||
var external: Boolean = false; private set
|
||||
@@ -330,11 +328,6 @@ class MemberBuilder(
|
||||
builder.append("@kotlin.internal.InlineOnly").append('\n')
|
||||
}
|
||||
|
||||
if (jvmOnly) {
|
||||
builder.append("@kotlin.jvm.JvmVersion").append('\n')
|
||||
}
|
||||
|
||||
|
||||
listOfNotNull(
|
||||
visibility ?: "public",
|
||||
"expect".takeIf { headerOnly },
|
||||
|
||||
Reference in New Issue
Block a user