diff --git a/python/src/com/jetbrains/python/run/PythonCommandLineState.java b/python/src/com/jetbrains/python/run/PythonCommandLineState.java index ba96c479dc3a..eed885ad21a3 100644 --- a/python/src/com/jetbrains/python/run/PythonCommandLineState.java +++ b/python/src/com/jetbrains/python/run/PythonCommandLineState.java @@ -110,7 +110,6 @@ import java.nio.file.Path; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; -import java.util.HashMap; import java.util.HashSet; import java.util.LinkedHashSet; import java.util.List; @@ -908,24 +907,6 @@ public abstract class PythonCommandLineState extends CommandLineState { } } - @ApiStatus.Internal - public static @NotNull Map buildPythonPath(@NotNull AbstractPythonRunConfiguration configuration, - boolean passParentEnvs) { - Map envs = new HashMap<>(configuration.getEnvs()); - Module module = configuration.getModule(); - Sdk sdk = configuration.getSdk(); - - if (sdk != null) { - List pathList = new ArrayList<>(); - pathList.addAll(getAddedPaths(sdk)); - pathList.addAll(collectPythonPath(module, configuration.shouldAddContentRoots(), configuration.shouldAddSourceRoots())); - PythonEnvUtil.initPythonPath(envs, passParentEnvs, pathList); - } - - return envs; - } - - @ApiStatus.Internal public static void buildPythonPath(@NotNull Project project, @Nullable Module module,