From 86fe3579c44f8c4fe6fc09cc0bc108c4f95f3ad8 Mon Sep 17 00:00:00 2001 From: Dmitry Trofimov Date: Thu, 27 Sep 2012 10:53:38 +0400 Subject: [PATCH] Removed obsolete setting. --- .../python/run/PythonRunConfigurationParams.java | 4 ---- .../python/run/PythonRunConfiguration.java | 14 -------------- .../python/run/PythonScriptCommandLineState.java | 5 ----- .../python/PythonRunConfigurationTest.java | 1 - 4 files changed, 24 deletions(-) diff --git a/python/openapi/src/com/jetbrains/python/run/PythonRunConfigurationParams.java b/python/openapi/src/com/jetbrains/python/run/PythonRunConfigurationParams.java index 3b825bdbcfa3..1624a15a557a 100644 --- a/python/openapi/src/com/jetbrains/python/run/PythonRunConfigurationParams.java +++ b/python/openapi/src/com/jetbrains/python/run/PythonRunConfigurationParams.java @@ -13,9 +13,5 @@ public interface PythonRunConfigurationParams { String getScriptParameters(); void setScriptParameters(String scriptParameters); - - boolean isMultiprocessMode(); - - void setMultiprocessMode(boolean multiprocess); } diff --git a/python/src/com/jetbrains/python/run/PythonRunConfiguration.java b/python/src/com/jetbrains/python/run/PythonRunConfiguration.java index 426111f2d3fb..8684d2537f96 100644 --- a/python/src/com/jetbrains/python/run/PythonRunConfiguration.java +++ b/python/src/com/jetbrains/python/run/PythonRunConfiguration.java @@ -36,7 +36,6 @@ public class PythonRunConfiguration extends AbstractPythonRunConfiguration public static final String MULTIPROCESS = "MULTIPROCESS"; private String myScriptName; private String myScriptParameters; - private boolean myMultiprocessMode; protected PythonRunConfiguration(RunConfigurationModule module, ConfigurationFactory configurationFactory, String name) { super(name, module, configurationFactory); @@ -96,28 +95,16 @@ public class PythonRunConfiguration extends AbstractPythonRunConfiguration myScriptParameters = scriptParameters; } - @Override - public boolean isMultiprocessMode() { - return myMultiprocessMode; - } - - @Override - public void setMultiprocessMode(boolean multiprocess) { - myMultiprocessMode = multiprocess; - } - public void readExternal(Element element) throws InvalidDataException { super.readExternal(element); myScriptName = JDOMExternalizerUtil.readField(element, SCRIPT_NAME); myScriptParameters = JDOMExternalizerUtil.readField(element, PARAMETERS); - myMultiprocessMode = Boolean.parseBoolean(JDOMExternalizerUtil.readField(element, MULTIPROCESS)); } public void writeExternal(Element element) throws WriteExternalException { super.writeExternal(element); JDOMExternalizerUtil.writeField(element, SCRIPT_NAME, myScriptName); JDOMExternalizerUtil.writeField(element, PARAMETERS, myScriptParameters); - JDOMExternalizerUtil.writeField(element, MULTIPROCESS, Boolean.toString(myMultiprocessMode)); } public AbstractPythonRunConfigurationParams getBaseParams() { @@ -128,7 +115,6 @@ public class PythonRunConfiguration extends AbstractPythonRunConfiguration AbstractPythonRunConfiguration.copyParams(source.getBaseParams(), target.getBaseParams()); target.setScriptName(source.getScriptName()); target.setScriptParameters(source.getScriptParameters()); - target.setMultiprocessMode(source.isMultiprocessMode()); } @Override diff --git a/python/src/com/jetbrains/python/run/PythonScriptCommandLineState.java b/python/src/com/jetbrains/python/run/PythonScriptCommandLineState.java index 09506896fcbe..f9353a4e9692 100644 --- a/python/src/com/jetbrains/python/run/PythonScriptCommandLineState.java +++ b/python/src/com/jetbrains/python/run/PythonScriptCommandLineState.java @@ -20,11 +20,6 @@ public class PythonScriptCommandLineState extends PythonCommandLineState { myConfig = runConfiguration; } - @Override - public boolean isMultiprocessDebug() { - return myConfig.isMultiprocessMode(); - } - @Override protected void buildCommandLineParameters(GeneralCommandLine commandLine) { ParametersList parametersList = commandLine.getParametersList(); diff --git a/python/testSrc/com/jetbrains/python/PythonRunConfigurationTest.java b/python/testSrc/com/jetbrains/python/PythonRunConfigurationTest.java index 50a22c256e7b..8a2206fd7ed6 100644 --- a/python/testSrc/com/jetbrains/python/PythonRunConfigurationTest.java +++ b/python/testSrc/com/jetbrains/python/PythonRunConfigurationTest.java @@ -27,7 +27,6 @@ public class PythonRunConfigurationTest extends PyCommandLineTestCase { PythonRunConfiguration configuration = createConfiguration(PythonConfigurationType.getInstance(), PythonRunConfiguration.class); configuration.setScriptName(PY_SCRIPT); - configuration.setMultiprocessMode(true); final List params = buildDebugCommandLine(configuration); final int index = verifyPyDevDParameters(params); assertEquals(PY_SCRIPT, params.get(index));