From 540fd65a28fce2bec112555776256aa6d4cb2dd6 Mon Sep 17 00:00:00 2001 From: Elena Lepilkina Date: Tue, 2 Apr 2019 16:58:23 +0300 Subject: [PATCH] Removed deprecated method which has already been removed from Kotlin --- .../kotlin/ir/util/IrUnboundSymbolReplacer.kt | 30 ------------------- 1 file changed, 30 deletions(-) diff --git a/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/ir/util/IrUnboundSymbolReplacer.kt b/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/ir/util/IrUnboundSymbolReplacer.kt index 66df0517001..13116d89993 100644 --- a/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/ir/util/IrUnboundSymbolReplacer.kt +++ b/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/ir/util/IrUnboundSymbolReplacer.kt @@ -19,36 +19,6 @@ import org.jetbrains.kotlin.ir.symbols.* import org.jetbrains.kotlin.ir.types.toKotlinType import org.jetbrains.kotlin.ir.visitors.* -@Deprecated("") -internal fun IrModuleFragment.replaceUnboundSymbols(context: Context) { - val collector = DeclarationSymbolCollector() - with(collector) { - with(irBuiltins) { - for (op in arrayOf(eqeqeqSymbol, eqeqSymbol, throwNpeSymbol, noWhenBranchMatchedExceptionSymbol) + - lessFunByOperandType.values + - lessOrEqualFunByOperandType.values + - greaterOrEqualFunByOperandType.values + - greaterFunByOperandType.values + - ieee754equalsFunByOperandType.values) { - register(op) - } - } - } - this.acceptVoid(collector) - - val symbolTable = context.ir.symbols.symbolTable - - this.transformChildrenVoid(IrUnboundSymbolReplacer(symbolTable, collector.descriptorToSymbol, context)) - - // Generate missing external stubs: - @Suppress("DEPRECATION") - ExternalDependenciesGenerator( - context.moduleDescriptor, - symbolTable = context.psi2IrGeneratorContext.symbolTable, - irBuiltIns = context.irBuiltIns - ).generateUnboundSymbolsAsDependencies() -} - private fun IrModuleFragment.mergeFrom(other: IrModuleFragment): Unit { assert(this.files.isEmpty()) assert(other.files.isEmpty())