From 069e040af9274cc1e7a6c4493ab2a887fc67ae80 Mon Sep 17 00:00:00 2001 From: Alexander Udalov Date: Fri, 30 Jul 2021 16:17:38 +0200 Subject: [PATCH] Fix warnings in kotlin-klib-commonizer --- .../kotlin/commonizer/tree/assembelCirTree.kt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/native/commonizer/src/org/jetbrains/kotlin/commonizer/tree/assembelCirTree.kt b/native/commonizer/src/org/jetbrains/kotlin/commonizer/tree/assembelCirTree.kt index fb7d28042b7..c1fbe569471 100644 --- a/native/commonizer/src/org/jetbrains/kotlin/commonizer/tree/assembelCirTree.kt +++ b/native/commonizer/src/org/jetbrains/kotlin/commonizer/tree/assembelCirTree.kt @@ -28,8 +28,8 @@ internal fun CirPackageNode.assembleCirTree(): CirTreePackage? { return CirTreePackage( pkg = commonizedPackage, - properties = properties.mapNotNull { (key, property) -> property.commonDeclaration() }, - functions = functions.mapNotNull { (key, function) -> function.commonDeclaration() }, + properties = properties.mapNotNull { (_, property) -> property.commonDeclaration() }, + functions = functions.mapNotNull { (_, function) -> function.commonDeclaration() }, typeAliases = commonizedTypeAliases.filterIsInstance(), classes = classes.mapNotNull { (_, clazz) -> clazz.assembleCirTree() } + commonizedTypeAliases.filterIsInstance() ) @@ -39,9 +39,9 @@ internal fun CirClassNode.assembleCirTree(): CirTreeClass? { return CirTreeClass( id = id, clazz = commonDeclaration() ?: return null, - properties = properties.mapNotNull { (key, property) -> property.commonDeclaration() }, - functions = functions.mapNotNull { (key, function) -> function.commonDeclaration() }, - constructors = constructors.mapNotNull { (key, constructor) -> constructor.commonDeclaration() }, + properties = properties.mapNotNull { (_, property) -> property.commonDeclaration() }, + functions = functions.mapNotNull { (_, function) -> function.commonDeclaration() }, + constructors = constructors.mapNotNull { (_, constructor) -> constructor.commonDeclaration() }, classes = classes.mapNotNull { (_, clazz) -> clazz.assembleCirTree() } ) }