Python: unused symbols removed

GitOrigin-RevId: 9847e831bcc3535fb2cc65f15567ea5ea8abe0ac
This commit is contained in:
Ilya.Kazakevich
2025-04-29 15:20:26 +02:00
committed by intellij-monorepo-bot
parent 1d97e3587d
commit 60420e1175
5 changed files with 3 additions and 80 deletions

View File

@@ -1,10 +0,0 @@
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.jetbrains.python
import org.jetbrains.annotations.Nls
/**
* Error string to be used with [Result]
*/
@JvmInline
value class LocalizedErrorString(val text: @Nls String)

View File

@@ -1,20 +0,0 @@
// Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.jetbrains.python.newProject;
import com.intellij.openapi.projectRoots.Sdk;
import com.intellij.openapi.util.NlsSafe;
import org.jetbrains.annotations.NotNull;
/**
* @deprecated Use {@link com.jetbrains.python.newProjectWizard}
*/
@Deprecated(forRemoval = true)
public interface PyFrameworkProjectGenerator {
@NotNull
@NlsSafe
String getFrameworkTitle();
boolean isFrameworkInstalled(@NotNull Sdk sdk);
}

View File

@@ -1,7 +1,6 @@
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.python.junit5Tests.unit
import com.jetbrains.python.LocalizedErrorString
import com.jetbrains.python.Result
import com.jetbrains.python.mapResult
import org.jetbrains.annotations.Nls
@@ -37,7 +36,7 @@ class ResultShowCaseTest {
readData(it)
}.mapResultWithErr( // Errors are different: IOException vs. LocalizedErrorString, use mapping
onSuccess = { businessLogic(it) },
onErr = { LocalizedErrorString("Oops, ${it.message}") }
onErr = { "Oops, ${it.message}" }
)
when (result) { // Classic matching
is Result.Success -> println("Money: ${result.result.dollars}")