diff --git a/kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/llvm/objcexport/ObjCExportCodeGenerator.kt b/kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/llvm/objcexport/ObjCExportCodeGenerator.kt index a91dbeae6c5..9f122191b9c 100644 --- a/kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/llvm/objcexport/ObjCExportCodeGenerator.kt +++ b/kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/llvm/objcexport/ObjCExportCodeGenerator.kt @@ -1516,14 +1516,6 @@ private fun ObjCExportCodeGenerator.createEnumValuesAdapter( return objCToKotlinMethodAdapter(selector, methodBridge, imp) } -private fun List.toMethods(): List = this.flatMap { - when (it) { - is PropertyDescriptor -> listOfNotNull(it.getter, it.setter) - is FunctionDescriptor -> listOf(it) - else -> error(it) - } -} - private fun objCFunctionType(context: Context, methodBridge: MethodBridge): LLVMTypeRef { val paramTypes = methodBridge.paramBridges.map { it.objCType }