From ed21011183c559d5a6dd556d2778c7d8a5c15967 Mon Sep 17 00:00:00 2001 From: Mikhail Glukhikh Date: Fri, 16 Sep 2022 10:01:45 +0200 Subject: [PATCH] NewConstraintSystemImpl: remove redundant suppressions --- .../resolve/calls/inference/model/NewConstraintSystemImpl.kt | 4 ---- 1 file changed, 4 deletions(-) diff --git a/compiler/resolution.common/src/org/jetbrains/kotlin/resolve/calls/inference/model/NewConstraintSystemImpl.kt b/compiler/resolution.common/src/org/jetbrains/kotlin/resolve/calls/inference/model/NewConstraintSystemImpl.kt index 13097eea20d..77c38c779ec 100644 --- a/compiler/resolution.common/src/org/jetbrains/kotlin/resolve/calls/inference/model/NewConstraintSystemImpl.kt +++ b/compiler/resolution.common/src/org/jetbrains/kotlin/resolve/calls/inference/model/NewConstraintSystemImpl.kt @@ -55,25 +55,21 @@ class NewConstraintSystemImpl( * If remove spread operator then call `checkState` will resolve to itself * instead of fun checkState(vararg allowedState: State) */ - @Suppress("RemoveRedundantSpreadOperator") private fun checkState(a: State) { if (!AbstractTypeChecker.RUN_SLOW_ASSERTIONS) return checkState(*arrayOf(a)) } - @Suppress("RemoveRedundantSpreadOperator") private fun checkState(a: State, b: State) { if (!AbstractTypeChecker.RUN_SLOW_ASSERTIONS) return checkState(*arrayOf(a, b)) } - @Suppress("RemoveRedundantSpreadOperator") private fun checkState(a: State, b: State, c: State) { if (!AbstractTypeChecker.RUN_SLOW_ASSERTIONS) return checkState(*arrayOf(a, b, c)) } - @Suppress("RemoveRedundantSpreadOperator") private fun checkState(a: State, b: State, c: State, d: State) { if (!AbstractTypeChecker.RUN_SLOW_ASSERTIONS) return checkState(*arrayOf(a, b, c, d))