diff --git a/compiler/ir/backend.common/src/org/jetbrains/kotlin/backend/common/utils/kotlinTypeBasedUtils.kt b/compiler/ir/backend.common/src/org/jetbrains/kotlin/backend/common/utils/kotlinTypeBasedUtils.kt index c59ee639a8b..3372f4475b4 100644 --- a/compiler/ir/backend.common/src/org/jetbrains/kotlin/backend/common/utils/kotlinTypeBasedUtils.kt +++ b/compiler/ir/backend.common/src/org/jetbrains/kotlin/backend/common/utils/kotlinTypeBasedUtils.kt @@ -6,26 +6,10 @@ package org.jetbrains.kotlin.backend.common.utils import org.jetbrains.kotlin.builtins.KotlinBuiltIns -import org.jetbrains.kotlin.ir.symbols.IrClassSymbol import org.jetbrains.kotlin.ir.types.IrType -import org.jetbrains.kotlin.ir.types.toIrType import org.jetbrains.kotlin.ir.types.toKotlinType -import org.jetbrains.kotlin.ir.util.SymbolTable -import org.jetbrains.kotlin.resolve.DescriptorUtils -import org.jetbrains.kotlin.types.CommonSupertypes -import org.jetbrains.kotlin.types.typeUtil.isSubtypeOf // TODO: implement pure Ir-based function (see IrTypeUtils.kt) @Deprecated("Use pure Ir helper") -fun IrType.getPrimitiveArrayElementType() = KotlinBuiltIns.getPrimitiveArrayElementType(toKotlinType()) - -@Deprecated("Use pure Ir helper") -fun List.commonSupertype(symbolTable: SymbolTable) = - CommonSupertypes.commonSupertype(map(IrType::toKotlinType)).toIrType(symbolTable)!! - -@Deprecated("Use pure Ir helper") -fun IrType.isSubtypeOf(superType: IrType) = toKotlinType().isSubtypeOf(superType.toKotlinType()) - -@Deprecated("Use pure Ir helper") -fun IrType.isSubtypeOfClass(superClass: IrClassSymbol) = DescriptorUtils.isSubtypeOfClass(toKotlinType(), superClass.descriptor) +fun IrType.getPrimitiveArrayElementType() = KotlinBuiltIns.getPrimitiveArrayElementType(toKotlinType()) \ No newline at end of file