From f82dce98fee5d1f9054e4622f46a20efcf07b2e4 Mon Sep 17 00:00:00 2001 From: "Ilya.Kazakevich" Date: Thu, 11 Jun 2026 23:29:49 +0200 Subject: [PATCH] cleanup [platform]: drop unused symbols GitOrigin-RevId: 6559a7bc8ba030afd994f6c5a713bda25b0a1896 --- .../src/com/intellij/execution/wsl/IpOrException.kt | 12 ------------ .../wsl/WslDistributionSafeNullableLazyValue.kt | 4 ---- 2 files changed, 16 deletions(-) delete mode 100644 platform/platform-impl/src/com/intellij/execution/wsl/IpOrException.kt diff --git a/platform/platform-impl/src/com/intellij/execution/wsl/IpOrException.kt b/platform/platform-impl/src/com/intellij/execution/wsl/IpOrException.kt deleted file mode 100644 index ead30b72ce5d..000000000000 --- a/platform/platform-impl/src/com/intellij/execution/wsl/IpOrException.kt +++ /dev/null @@ -1,12 +0,0 @@ -// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. -package com.intellij.execution.wsl - -import com.intellij.execution.ExecutionException - -internal class IpOrException private constructor(private val result: Result) { - constructor(ip: String) : this(Result.success(ip)) - constructor(error: ExecutionException) : this(Result.failure(error)) - - @Throws(ExecutionException::class) - fun getIp(): String = result.getOrThrow() -} \ No newline at end of file diff --git a/platform/platform-impl/src/com/intellij/execution/wsl/WslDistributionSafeNullableLazyValue.kt b/platform/platform-impl/src/com/intellij/execution/wsl/WslDistributionSafeNullableLazyValue.kt index c4ea8a6cb11d..87ffd6150bbe 100644 --- a/platform/platform-impl/src/com/intellij/execution/wsl/WslDistributionSafeNullableLazyValue.kt +++ b/platform/platform-impl/src/com/intellij/execution/wsl/WslDistributionSafeNullableLazyValue.kt @@ -3,7 +3,6 @@ package com.intellij.execution.wsl import com.intellij.concurrency.currentThreadContext import com.intellij.openapi.application.ApplicationManager -import com.intellij.openapi.components.Service import com.intellij.openapi.diagnostic.getOrLogException import com.intellij.openapi.diagnostic.logger import com.intellij.openapi.progress.ProgressManager @@ -140,9 +139,6 @@ class WslDistributionSafeNullableLazyValue private constructor(private val co @OptIn(ExperimentalCoroutinesApi::class) private fun Deferred.isCompletedExceptionally() = isCompleted && getCompletionExceptionOrNull() != null - @Service(Service.Level.APP) - private class ScopeHolder(val coroutineScope: CoroutineScope) - companion object { private val LOG = logger>()