[Cleanup 193] Remove unnecessary overrides from PendingTargetRunConfigurationHandler
@@ -28,9 +28,6 @@ import com.intellij.execution.ExecutionResult;
import com.intellij.execution.Executor;
import com.intellij.execution.RunManager;
import com.intellij.execution.RunnerAndConfigurationSettings;
-import com.intellij.execution.configurations.ConfigurationInfoProvider;
-import com.intellij.execution.configurations.ConfigurationPerRunnerSettings;
-import com.intellij.execution.configurations.RunConfiguration;
import com.intellij.execution.configurations.RunProfile;
import com.intellij.execution.configurations.RunProfileState;
import com.intellij.execution.configurations.RunnerSettings;
@@ -39,7 +36,6 @@ import com.intellij.execution.runners.ExecutionEnvironment;
import com.intellij.execution.runners.ExecutionUtil;
import com.intellij.execution.runners.ProgramRunner;
import com.intellij.openapi.application.ApplicationManager;
-import com.intellij.openapi.options.SettingsEditor;
import javax.annotation.Nullable;
class PendingTargetRunConfigurationHandler implements BlazeCommandRunConfigurationHandler {
@@ -122,39 +118,6 @@ class PendingTargetRunConfigurationHandler implements BlazeCommandRunConfigurati
}
});
}
-
- /** #api193: remove when 2019.3 no longer supported; default implementation added in 2020.1 */
- @Override
- public void execute(ExecutionEnvironment env, @Nullable Callback callback)
- throws ExecutionException {
- execute(env);
- }
-
- /** #api193: remove when 2019.3 no longer supported; default implementation added in 2020.1. */
- @Nullable
- @Override
- public RunnerSettings createConfigurationData(
- ConfigurationInfoProvider configurationInfoProvider) {
- return null;
- }
-
- /** #api193: remove when 2019.3 no longer supported; default implementation added in 2020.1. */
- @Override
- public void checkConfiguration(
- RunnerSettings runnerSettings,
- @Nullable ConfigurationPerRunnerSettings configurationPerRunnerSettings) {}
-
- /** #api193: remove when 2019.3 no longer supported; default implementation added in 2020.1. */
- @Override
- public void onProcessStarted(RunnerSettings runnerSettings, ExecutionResult executionResult) {}
-
- /** #api193: remove when 2019.3 no longer supported; default implementation added in 2020.1. */
- @Nullable
- @Override
- public SettingsEditor<RunnerSettings> getSettingsEditor(
- Executor executor, RunConfiguration runConfiguration) {
- return null;
- }
}
private static void reRunConfiguration(ExecutionEnvironment env) throws ExecutionException {
@@ -176,8 +139,7 @@ class PendingTargetRunConfigurationHandler implements BlazeCommandRunConfigurati
*/
private static class DummyRunProfileState implements RunProfileState {
@Override
- @SuppressWarnings("rawtypes") // #api193: Use ProgramRunner<?> as super method from 2020.1 on.
- public ExecutionResult execute(Executor executor, ProgramRunner runner) {
+ public ExecutionResult execute(Executor executor, ProgramRunner<?> runner) {
throw new RuntimeException("Unexpected code path");
}
}
