Clean up WasExperimental annotation from declarations with SinceKotlin<=1.4

Since it is not possible to use -api-version < 1.4, this annotation has no effect
This commit is contained in:
Ilya Gorbunov
2023-11-07 15:07:42 +01:00
committed by Space Team
parent 081e1de5af
commit 9ccce52915
33 changed files with 3 additions and 464 deletions
@@ -1188,7 +1188,6 @@ object Aggregates : TemplateGroupBase() {
include(ArraysOfPrimitives, ArraysOfUnsigned, CharSequences)
} builder {
since("1.4")
wasExperimental("ExperimentalStdlibApi")
inline()
specialFor(ArraysOfUnsigned) { inlineOnly() }
@@ -1213,7 +1212,6 @@ object Aggregates : TemplateGroupBase() {
include(ArraysOfObjects, Iterables, Sequences)
} builder {
since("1.4")
wasExperimental("ExperimentalStdlibApi")
inline()
doc { reduceDoc("reduceOrNull") }
@@ -1313,7 +1311,6 @@ object Aggregates : TemplateGroupBase() {
include(CharSequences, ArraysOfPrimitives, ArraysOfUnsigned)
} builder {
since("1.4")
wasExperimental("ExperimentalStdlibApi")
inline()
specialFor(ArraysOfUnsigned) { inlineOnly() }
@@ -1339,7 +1336,6 @@ object Aggregates : TemplateGroupBase() {
include(Lists, ArraysOfObjects)
} builder {
since("1.4")
wasExperimental("ExperimentalStdlibApi")
inline()
doc { reduceDoc("reduceRightOrNull") }
sample("samples.collections.Collections.Aggregates.reduceRightOrNull")
@@ -1460,7 +1456,6 @@ object Aggregates : TemplateGroupBase() {
include(CharSequences, ArraysOfUnsigned)
} builder {
since("1.4")
wasExperimental("ExperimentalStdlibApi")
specialFor(Iterables, ArraysOfObjects, CharSequences) { inline() }
specialFor(ArraysOfPrimitives, ArraysOfUnsigned) { inlineOnly() }
@@ -1558,7 +1553,6 @@ object Aggregates : TemplateGroupBase() {
include(CharSequences, ArraysOfUnsigned)
} builder {
since("1.4")
wasExperimental("ExperimentalStdlibApi")
specialFor(Iterables, ArraysOfObjects, CharSequences) { inline() }
specialFor(ArraysOfPrimitives, ArraysOfUnsigned) { inlineOnly() }
@@ -1658,7 +1652,6 @@ object Aggregates : TemplateGroupBase() {
include(ArraysOfObjects, Iterables, Sequences)
} builder {
since("1.4")
wasExperimental("ExperimentalStdlibApi")
specialFor(ArraysOfObjects, Iterables) { inline() }
@@ -31,6 +31,9 @@ object Elements : TemplateGroupBase() {
sourceFile(SourceFile.URanges)
}
}
if (since?.let { it <= "1.4" } == true) {
wasExperimentalAnnotations.clear()
}
}
}