Remove unused code from StudyShowHintAction
authorValentina Kiryushkina <valentina.kiryushkina@jetbrains.com>
Fri, 22 Jul 2016 10:11:15 +0000 (13:11 +0300)
committerValentina Kiryushkina <valentina.kiryushkina@jetbrains.com>
Fri, 22 Jul 2016 18:43:00 +0000 (21:43 +0300)
python/educational-core/student/src/com/jetbrains/edu/learning/actions/StudyShowHintAction.java

index 818eb917c2b5520be31f9cb967198c43933eab98..8cea369440a84977a7db5cee9fca74b912a5adf6 100644 (file)
@@ -29,7 +29,6 @@ import org.jetbrains.annotations.Nullable;
 
 import javax.swing.*;
 import java.awt.*;
-import java.util.LinkedList;
 
 public class StudyShowHintAction extends StudyActionWithShortcut {
   public static final String ACTION_ID = "ShowHintAction";
@@ -67,19 +66,8 @@ public class StudyShowHintAction extends StudyActionWithShortcut {
       return;
     }
     EduUsagesCollector.hintShown();
-    LinkedList<String> hints = new LinkedList<>();
-    if (answerPlaceholder != null) {
-      hints.addAll(answerPlaceholder.getHints());
-      //final ArrayList<String> strings = new ArrayList<>();
-      //strings.add(answerPlaceholder.getHints());
-      //strings.add("test");
-      //hints.addAll(strings);
-    }
-    else {
-      hints.add(ourWarningMessage);
-    }
+    
     final StudyToolWindow hintComponent = new StudyHint(answerPlaceholder, project).getStudyToolWindow();
-
     showHintPopUp(project, studyState, editor, hintComponent);
   }