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>()