From 46c4cdb0708b082b673dd7d2946ced95e42d23b4 Mon Sep 17 00:00:00 2001 From: Valentina Kiryushkina Date: Fri, 22 Jul 2016 13:11:15 +0300 Subject: [PATCH] Remove unused code from StudyShowHintAction --- .../edu/learning/actions/StudyShowHintAction.java | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/python/educational-core/student/src/com/jetbrains/edu/learning/actions/StudyShowHintAction.java b/python/educational-core/student/src/com/jetbrains/edu/learning/actions/StudyShowHintAction.java index 818eb917c2b5..8cea369440a8 100644 --- a/python/educational-core/student/src/com/jetbrains/edu/learning/actions/StudyShowHintAction.java +++ b/python/educational-core/student/src/com/jetbrains/edu/learning/actions/StudyShowHintAction.java @@ -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 hints = new LinkedList<>(); - if (answerPlaceholder != null) { - hints.addAll(answerPlaceholder.getHints()); - //final ArrayList 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); }