From a2c4be89f26aba9c6c8277dc6ea84a6dafcb1418 Mon Sep 17 00:00:00 2001 From: Roman Shevchenko Date: Thu, 8 Jun 2017 14:47:15 +0300 Subject: [PATCH] Cleanup (unneeded code) --- .../src/org/jetbrains/java/decompiler/IdeaDecompiler.kt | 6 ------ 1 file changed, 6 deletions(-) diff --git a/plugins/java-decompiler/plugin/src/org/jetbrains/java/decompiler/IdeaDecompiler.kt b/plugins/java-decompiler/plugin/src/org/jetbrains/java/decompiler/IdeaDecompiler.kt index 07e6f4de32f7..6c10c19ced37 100644 --- a/plugins/java-decompiler/plugin/src/org/jetbrains/java/decompiler/IdeaDecompiler.kt +++ b/plugins/java-decompiler/plugin/src/org/jetbrains/java/decompiler/IdeaDecompiler.kt @@ -26,7 +26,6 @@ import com.intellij.openapi.fileEditor.FileEditorManager import com.intellij.openapi.fileEditor.FileEditorManagerListener 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 @@ -88,7 +87,6 @@ class IdeaDecompiler : ClassFileDecompilers.Light() { private val myLogger = lazy { IdeaLogger() } private val myOptions = lazy { getOptions() } - private val myProgress = ContainerUtil.newConcurrentMap() private val myFutures = ContainerUtil.newConcurrentMap>() @Volatile private var myLegalNoticeAccepted = false @@ -150,7 +148,6 @@ class IdeaDecompiler : ClassFileDecompilers.Light() { val indicator = ProgressManager.getInstance().progressIndicator if (indicator != null) { - myProgress.put(file, indicator) indicator.text = IdeaDecompilerBundle.message("decompiling.progress", file.name) } @@ -191,9 +188,6 @@ class IdeaDecompiler : ClassFileDecompilers.Light() { throw ClassFileDecompilers.Light.CannotDecompileException(e) } } - finally { - myProgress.remove(file) - } } private class MyBytecodeProvider(private val files: Map) : IBytecodeProvider {