NewConstraintSystemImpl: remove redundant suppressions

This commit is contained in:
Mikhail Glukhikh
2022-09-16 10:01:45 +02:00
committed by Space
parent 6ab516a7e5
commit ed21011183
@@ -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))