Delete some dead code which also happens to crash on test startup
This commit is contained in:
@@ -24,7 +24,6 @@ import com.intellij.openapi.module.Module;
|
|||||||
import com.intellij.openapi.module.ModuleManager;
|
import com.intellij.openapi.module.ModuleManager;
|
||||||
import com.intellij.openapi.module.ModuleType;
|
import com.intellij.openapi.module.ModuleType;
|
||||||
import com.intellij.openapi.module.StdModuleTypes;
|
import com.intellij.openapi.module.StdModuleTypes;
|
||||||
import com.intellij.openapi.progress.EmptyProgressIndicator;
|
|
||||||
import com.intellij.openapi.project.Project;
|
import com.intellij.openapi.project.Project;
|
||||||
import com.intellij.openapi.util.SystemInfo;
|
import com.intellij.openapi.util.SystemInfo;
|
||||||
import com.intellij.openapi.util.io.FileUtil;
|
import com.intellij.openapi.util.io.FileUtil;
|
||||||
@@ -42,7 +41,6 @@ import org.jetbrains.annotations.NotNull;
|
|||||||
import org.jetbrains.idea.maven.indices.MavenIndicesManager;
|
import org.jetbrains.idea.maven.indices.MavenIndicesManager;
|
||||||
import org.jetbrains.idea.maven.project.*;
|
import org.jetbrains.idea.maven.project.*;
|
||||||
import org.jetbrains.idea.maven.server.MavenServerManager;
|
import org.jetbrains.idea.maven.server.MavenServerManager;
|
||||||
import org.jetbrains.idea.maven.utils.MavenProgressIndicator;
|
|
||||||
|
|
||||||
import java.awt.*;
|
import java.awt.*;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
@@ -54,10 +52,6 @@ import java.util.List;
|
|||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
|
|
||||||
public abstract class MavenTestCase extends UsefulTestCase {
|
public abstract class MavenTestCase extends UsefulTestCase {
|
||||||
protected static final MavenConsole NULL_MAVEN_CONSOLE = NullMavenConsole.INSTANCE;
|
|
||||||
// should not be static
|
|
||||||
protected static MavenProgressIndicator EMPTY_MAVEN_PROCESS = new MavenProgressIndicator(new EmptyProgressIndicator());
|
|
||||||
|
|
||||||
private File ourTempDir;
|
private File ourTempDir;
|
||||||
|
|
||||||
protected IdeaProjectTestFixture myTestFixture;
|
protected IdeaProjectTestFixture myTestFixture;
|
||||||
|
|||||||
@@ -1,34 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright 2010-2015 JetBrains s.r.o.
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
package org.jetbrains.kotlin.idea.maven
|
|
||||||
|
|
||||||
import com.intellij.execution.process.ProcessHandler
|
|
||||||
import org.jetbrains.idea.maven.execution.MavenExecutionOptions
|
|
||||||
import org.jetbrains.idea.maven.project.MavenConsole
|
|
||||||
|
|
||||||
object NullMavenConsole : MavenConsole(MavenExecutionOptions.LoggingLevel.DISABLED, false) {
|
|
||||||
override fun canPause() = false
|
|
||||||
override fun isOutputPaused() = false
|
|
||||||
override fun setOutputPaused(outputPaused: Boolean) {
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun attachToProcess(processHandler: ProcessHandler) {
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun doPrint(text: String, type: MavenConsole.OutputType) {
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user