From e94a0b8483b6ae752a3ee34f5deb200dca2e773c Mon Sep 17 00:00:00 2001 From: "Denis.Zharkov" Date: Mon, 10 Jul 2023 13:22:39 +0200 Subject: [PATCH] K2: Suppress "unused" for some methods at DependencyListForCliModule Because we assume this part as a part of a public API --- .../org/jetbrains/kotlin/fir/DependencyListForCliModule.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/compiler/fir/entrypoint/src/org/jetbrains/kotlin/fir/DependencyListForCliModule.kt b/compiler/fir/entrypoint/src/org/jetbrains/kotlin/fir/DependencyListForCliModule.kt index ee2e8206ada..35d2f81f666 100644 --- a/compiler/fir/entrypoint/src/org/jetbrains/kotlin/fir/DependencyListForCliModule.kt +++ b/compiler/fir/entrypoint/src/org/jetbrains/kotlin/fir/DependencyListForCliModule.kt @@ -90,10 +90,15 @@ class DependencyListForCliModule( filtersMap.getValue(binaryModuleData.dependsOn) += paths } + + // Potentially, a part of a public API, so we leave it even while it's unused + @Suppress("unused") fun sourceFriendsDependencies(modules: Collection) { allFriendsDependencies += modules } + // Potentially, a part of a public API, so we leave it even while it's unused + @Suppress("unused") fun sourceDependsOnDependencies(modules: Collection) { allDependsOnDependencies += modules }