From f36f37bf47acceef039f33a53fa59fa5352f4e88 Mon Sep 17 00:00:00 2001 From: Ivan Kylchik Date: Tue, 22 Aug 2023 15:16:24 +0200 Subject: [PATCH] [IR] Drop `isNan` fun from `IrInterpreterCommonChecker` It is not used anymore after 858f43280742fb0ebf1f55f61559ce812ac6b0c6 --- .../ir/interpreter/checker/IrInterpreterCommonChecker.kt | 5 ----- 1 file changed, 5 deletions(-) diff --git a/compiler/ir/ir.interpreter/src/org/jetbrains/kotlin/ir/interpreter/checker/IrInterpreterCommonChecker.kt b/compiler/ir/ir.interpreter/src/org/jetbrains/kotlin/ir/interpreter/checker/IrInterpreterCommonChecker.kt index 063e09e5fff..286c52a3d20 100644 --- a/compiler/ir/ir.interpreter/src/org/jetbrains/kotlin/ir/interpreter/checker/IrInterpreterCommonChecker.kt +++ b/compiler/ir/ir.interpreter/src/org/jetbrains/kotlin/ir/interpreter/checker/IrInterpreterCommonChecker.kt @@ -119,11 +119,6 @@ class IrInterpreterCommonChecker : IrInterpreterChecker { return body.kind == IrSyntheticBodyKind.ENUM_VALUES || body.kind == IrSyntheticBodyKind.ENUM_VALUEOF } - private fun IrConst<*>.isNaN(): Boolean { - return this.kind == IrConstKind.Double && IrConstKind.Double.valueOf(this).isNaN() || - this.kind == IrConstKind.Float && IrConstKind.Float.valueOf(this).isNaN() - } - override fun visitConst(expression: IrConst<*>, data: IrInterpreterCheckerData): Boolean { return true }