Suppress most of unused parameter warnings
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2010-2018 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
@@ -35,6 +35,7 @@ public inline operator fun <V, V1 : V> Map<in String, @Exact V>.getValue(thisRef
|
||||
public inline operator fun <V, V1 : V> MutableMap<in String, out @Exact V>.getValue(thisRef: Any?, property: KProperty<*>): V1 =
|
||||
@Suppress("UNCHECKED_CAST") (getOrImplicitDefault(property.name) as V1)
|
||||
|
||||
@Suppress("UNUSED_PARAMETER")
|
||||
@Deprecated("Use getValue() with two type parameters instead", level = DeprecationLevel.ERROR)
|
||||
@kotlin.jvm.JvmName("getVarContravariant")
|
||||
@kotlin.internal.LowPriorityInOverloadResolution
|
||||
|
||||
@@ -94,6 +94,7 @@ public abstract class TimeMark {
|
||||
"Subtracting one TimeMark from another is not a well defined operation because these time marks could have been obtained from the different time sources.",
|
||||
level = DeprecationLevel.ERROR
|
||||
)
|
||||
@Suppress("UNUSED_PARAMETER")
|
||||
public inline operator fun TimeMark.minus(other: TimeMark): Duration = throw Error("Operation is disallowed.")
|
||||
|
||||
@ExperimentalTime
|
||||
@@ -103,6 +104,7 @@ public inline operator fun TimeMark.minus(other: TimeMark): Duration = throw Err
|
||||
"Comparing one TimeMark to another is not a well defined operation because these time marks could have been obtained from the different time sources.",
|
||||
level = DeprecationLevel.ERROR
|
||||
)
|
||||
@Suppress("UNUSED_PARAMETER")
|
||||
public inline operator fun TimeMark.compareTo(other: TimeMark): Int = throw Error("Operation is disallowed.")
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user