Remove UNUSED_PARAMETER warning suppression from actual declarations

This commit is contained in:
Ilya Gorbunov
2018-03-31 06:30:35 +03:00
parent ac3de447ae
commit 0e4925a20f
5 changed files with 4 additions and 16 deletions
@@ -101,7 +101,6 @@ public actual fun CharArray.asList(): List<Char> {
*/ */
@SinceKotlin("1.1") @SinceKotlin("1.1")
@library("arrayDeepEquals") @library("arrayDeepEquals")
@Suppress("UNUSED_PARAMETER")
public actual infix fun <T> Array<out T>.contentDeepEquals(other: Array<out T>): Boolean { public actual infix fun <T> Array<out T>.contentDeepEquals(other: Array<out T>): Boolean {
definedExternally definedExternally
} }
@@ -139,7 +138,6 @@ public actual fun <T> Array<out T>.contentDeepToString(): String {
*/ */
@SinceKotlin("1.1") @SinceKotlin("1.1")
@library("arrayEquals") @library("arrayEquals")
@Suppress("UNUSED_PARAMETER")
public actual infix fun <T> Array<out T>.contentEquals(other: Array<out T>): Boolean { public actual infix fun <T> Array<out T>.contentEquals(other: Array<out T>): Boolean {
definedExternally definedExternally
} }
@@ -150,7 +148,6 @@ public actual infix fun <T> Array<out T>.contentEquals(other: Array<out T>): Boo
*/ */
@SinceKotlin("1.1") @SinceKotlin("1.1")
@library("arrayEquals") @library("arrayEquals")
@Suppress("UNUSED_PARAMETER")
public actual infix fun ByteArray.contentEquals(other: ByteArray): Boolean { public actual infix fun ByteArray.contentEquals(other: ByteArray): Boolean {
definedExternally definedExternally
} }
@@ -161,7 +158,6 @@ public actual infix fun ByteArray.contentEquals(other: ByteArray): Boolean {
*/ */
@SinceKotlin("1.1") @SinceKotlin("1.1")
@library("arrayEquals") @library("arrayEquals")
@Suppress("UNUSED_PARAMETER")
public actual infix fun ShortArray.contentEquals(other: ShortArray): Boolean { public actual infix fun ShortArray.contentEquals(other: ShortArray): Boolean {
definedExternally definedExternally
} }
@@ -172,7 +168,6 @@ public actual infix fun ShortArray.contentEquals(other: ShortArray): Boolean {
*/ */
@SinceKotlin("1.1") @SinceKotlin("1.1")
@library("arrayEquals") @library("arrayEquals")
@Suppress("UNUSED_PARAMETER")
public actual infix fun IntArray.contentEquals(other: IntArray): Boolean { public actual infix fun IntArray.contentEquals(other: IntArray): Boolean {
definedExternally definedExternally
} }
@@ -183,7 +178,6 @@ public actual infix fun IntArray.contentEquals(other: IntArray): Boolean {
*/ */
@SinceKotlin("1.1") @SinceKotlin("1.1")
@library("arrayEquals") @library("arrayEquals")
@Suppress("UNUSED_PARAMETER")
public actual infix fun LongArray.contentEquals(other: LongArray): Boolean { public actual infix fun LongArray.contentEquals(other: LongArray): Boolean {
definedExternally definedExternally
} }
@@ -194,7 +188,6 @@ public actual infix fun LongArray.contentEquals(other: LongArray): Boolean {
*/ */
@SinceKotlin("1.1") @SinceKotlin("1.1")
@library("arrayEquals") @library("arrayEquals")
@Suppress("UNUSED_PARAMETER")
public actual infix fun FloatArray.contentEquals(other: FloatArray): Boolean { public actual infix fun FloatArray.contentEquals(other: FloatArray): Boolean {
definedExternally definedExternally
} }
@@ -205,7 +198,6 @@ public actual infix fun FloatArray.contentEquals(other: FloatArray): Boolean {
*/ */
@SinceKotlin("1.1") @SinceKotlin("1.1")
@library("arrayEquals") @library("arrayEquals")
@Suppress("UNUSED_PARAMETER")
public actual infix fun DoubleArray.contentEquals(other: DoubleArray): Boolean { public actual infix fun DoubleArray.contentEquals(other: DoubleArray): Boolean {
definedExternally definedExternally
} }
@@ -216,7 +208,6 @@ public actual infix fun DoubleArray.contentEquals(other: DoubleArray): Boolean {
*/ */
@SinceKotlin("1.1") @SinceKotlin("1.1")
@library("arrayEquals") @library("arrayEquals")
@Suppress("UNUSED_PARAMETER")
public actual infix fun BooleanArray.contentEquals(other: BooleanArray): Boolean { public actual infix fun BooleanArray.contentEquals(other: BooleanArray): Boolean {
definedExternally definedExternally
} }
@@ -227,7 +218,6 @@ public actual infix fun BooleanArray.contentEquals(other: BooleanArray): Boolean
*/ */
@SinceKotlin("1.1") @SinceKotlin("1.1")
@library("arrayEquals") @library("arrayEquals")
@Suppress("UNUSED_PARAMETER")
public actual infix fun CharArray.contentEquals(other: CharArray): Boolean { public actual infix fun CharArray.contentEquals(other: CharArray): Boolean {
definedExternally definedExternally
} }
@@ -34,7 +34,7 @@ public actual open class ArrayList<E> internal constructor(private var array: Ar
* Creates an empty [ArrayList]. * Creates an empty [ArrayList].
* @param initialCapacity initial capacity (ignored) * @param initialCapacity initial capacity (ignored)
*/ */
public actual constructor(@Suppress("UNUSED_PARAMETER") initialCapacity: Int) : this(emptyArray()) {} public actual constructor(initialCapacity: Int) : this(emptyArray()) {}
/** /**
* Creates an [ArrayList] filled from the [elements] collection. * Creates an [ArrayList] filled from the [elements] collection.
*/ */
@@ -43,7 +43,7 @@ public actual open class ArrayList<E> internal constructor(private var array: Ar
/** Does nothing in this ArrayList implementation. */ /** Does nothing in this ArrayList implementation. */
public actual fun trimToSize() {} public actual fun trimToSize() {}
/** Does nothing in this ArrayList implementation. */ /** Does nothing in this ArrayList implementation. */
public actual fun ensureCapacity(@Suppress("UNUSED_PARAMETER") minCapacity: Int) {} public actual fun ensureCapacity(minCapacity: Int) {}
actual override val size: Int get() = array.size actual override val size: Int get() = array.size
actual override fun get(index: Int): E = array[rangeCheck(index)] as E actual override fun get(index: Int): E = array[rangeCheck(index)] as E
+1 -1
View File
@@ -23,4 +23,4 @@ public typealias Synchronized = kotlin.jvm.Synchronized
public typealias Volatile = kotlin.jvm.Volatile public typealias Volatile = kotlin.jvm.Volatile
@kotlin.internal.InlineOnly @kotlin.internal.InlineOnly
public actual inline fun <R> synchronized(@Suppress("UNUSED_PARAMETER") lock: Any, block: () -> R): R = block() public actual inline fun <R> synchronized(lock: Any, block: () -> R): R = block()
+1 -1
View File
@@ -24,7 +24,7 @@ public actual interface Appendable {
} }
public actual class StringBuilder(content: String) : Appendable, CharSequence { public actual class StringBuilder(content: String) : Appendable, CharSequence {
actual constructor(@Suppress("UNUSED_PARAMETER") capacity: Int) : this() {} actual constructor(capacity: Int) : this() {}
actual constructor(content: CharSequence) : this(content.toString()) {} actual constructor(content: CharSequence) : this(content.toString()) {}
@@ -82,7 +82,6 @@ object ArrayOps : TemplateGroupBase() {
on(Platform.JS) { on(Platform.JS) {
annotation("""@library("arrayEquals")""") annotation("""@library("arrayEquals")""")
annotation("""@Suppress("UNUSED_PARAMETER")""")
body { "definedExternally" } body { "definedExternally" }
} }
} }
@@ -108,7 +107,6 @@ object ArrayOps : TemplateGroupBase() {
} }
on(Platform.JS) { on(Platform.JS) {
annotation("""@library("arrayDeepEquals")""") annotation("""@library("arrayDeepEquals")""")
annotation("""@Suppress("UNUSED_PARAMETER")""")
body { "definedExternally" } body { "definedExternally" }
} }
} }