From 5d9ee41b7a726b6e025b55c8bc9cd0e0e249a952 Mon Sep 17 00:00:00 2001 From: Lamberto Basti Date: Mon, 19 Feb 2024 17:13:44 +0100 Subject: [PATCH] Remove unused gradleIdentityPathOrNull utility This commit removes the unused 'gradleIdentityPathOrNull' utility from the Utils.kt file. This method was previously used to retrieve Gradle module identity path, but is no longer needed. The appearance and readability of the code have significantly improved as a result. --- .../jetbrains/packagesearch/plugin/gradle/utils/Utils.kt | 6 ------ 1 file changed, 6 deletions(-) diff --git a/plugin/gradle/src/main/kotlin/com/jetbrains/packagesearch/plugin/gradle/utils/Utils.kt b/plugin/gradle/src/main/kotlin/com/jetbrains/packagesearch/plugin/gradle/utils/Utils.kt index 759cc5f5..167bf5f2 100644 --- a/plugin/gradle/src/main/kotlin/com/jetbrains/packagesearch/plugin/gradle/utils/Utils.kt +++ b/plugin/gradle/src/main/kotlin/com/jetbrains/packagesearch/plugin/gradle/utils/Utils.kt @@ -20,12 +20,6 @@ val Module.isGradleSourceSet: Boolean return ExternalSystemApiUtil.getExternalModuleType(this) == GradleConstants.GRADLE_SOURCE_SET_MODULE_TYPE_KEY } -val Module.gradleIdentityPathOrNull: String? - get() = CachedModuleDataFinder.getInstance(project) - .findMainModuleData(this) - ?.data - ?.gradleIdentityPathOrNull - suspend fun Project.awaitExternalSystemInitialization() = suspendCoroutine { ExternalProjectsManager.getInstance(this@awaitExternalSystemInitialization) .runWhenInitialized { it.resume(Unit) }