From 1978566fee10162d6b3e903cafef6849586fa01a Mon Sep 17 00:00:00 2001 From: Sebastian Sellmair Date: Thu, 26 Jan 2023 10:06:50 +0100 Subject: [PATCH] [K/N] SearchPathResolver: Do not emit warning for LenientUnresolvedLibrary ^KT-56205 Verification Pending --- .../src/org/jetbrains/kotlin/library/SearchPathResolver.kt | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/compiler/util-klib/src/org/jetbrains/kotlin/library/SearchPathResolver.kt b/compiler/util-klib/src/org/jetbrains/kotlin/library/SearchPathResolver.kt index 06fa6bc7adf..2cc50842780 100644 --- a/compiler/util-klib/src/org/jetbrains/kotlin/library/SearchPathResolver.kt +++ b/compiler/util-klib/src/org/jetbrains/kotlin/library/SearchPathResolver.kt @@ -162,17 +162,12 @@ abstract class KotlinLibrarySearchPathResolver( } override fun resolve(unresolved: LenientUnresolvedLibrary, isDefaultLink: Boolean): L? { - return resolveOrNull(unresolved, isDefaultLink).also { resolvedLibrary -> - if (resolvedLibrary == null) { - logger.warning("Could not find \"${unresolved.path}\" in ${searchRoots.map { it.absolutePath }}") - } - } + return resolveOrNull(unresolved, isDefaultLink) } override fun resolve(unresolved: RequiredUnresolvedLibrary, isDefaultLink: Boolean): L { return resolveOrNull(unresolved, isDefaultLink) ?: logger.fatal("Could not find \"${unresolved.path}\" in ${searchRoots.map { it.absolutePath }}") - } override fun libraryMatch(candidate: L, unresolved: UnresolvedLibrary): Boolean = true