Cleanup (dead code)

This commit is contained in:
Roman Shevchenko
2014-11-12 18:46:04 +01:00
parent 78b4871d51
commit 4fd6842ba0
@@ -27,8 +27,6 @@ import com.intellij.openapi.application.ex.ApplicationManagerEx;
import com.intellij.openapi.fileEditor.*;
import com.intellij.openapi.fileTypes.StdFileTypes;
import com.intellij.openapi.progress.ProcessCanceledException;
import com.intellij.openapi.progress.ProgressIndicator;
import com.intellij.openapi.progress.ProgressManager;
import com.intellij.openapi.project.DefaultProjectFactory;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.ui.DialogWrapper;
@@ -49,7 +47,6 @@ import com.intellij.util.messages.MessageBusConnection;
import com.intellij.util.ui.UIUtil;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.jetbrains.annotations.TestOnly;
import org.jetbrains.java.decompiler.main.decompiler.BaseDecompiler;
import org.jetbrains.java.decompiler.main.extern.IBytecodeProvider;
import org.jetbrains.java.decompiler.main.extern.IFernflowerLogger;
@@ -77,7 +74,6 @@ public class IdeaDecompiler extends ClassFileDecompilers.Light {
private final IFernflowerLogger myLogger = new IdeaLogger();
private final Map<String, Object> myOptions = new HashMap<String, Object>();
private boolean myLegalNoticeAccepted;
private volatile ProgressIndicator myProgress;
public IdeaDecompiler() {
myOptions.put(IFernflowerPreferences.HIDE_DEFAULT_CONSTRUCTOR, "0");
@@ -144,8 +140,6 @@ public class IdeaDecompiler extends ClassFileDecompilers.Light {
return ClsFileImpl.decompile(file);
}
myProgress = ProgressManager.getInstance().getProgressIndicator();
try {
Map<String, VirtualFile> files = ContainerUtil.newLinkedHashMap();
files.put(file.getPath(), file);
@@ -199,15 +193,6 @@ public class IdeaDecompiler extends ClassFileDecompilers.Light {
throw new CannotDecompileException(e);
}
}
finally {
myProgress = null;
}
}
@TestOnly
@Nullable
public ProgressIndicator getProgress() {
return myProgress;
}
private static class MyBytecodeProvider implements IBytecodeProvider {