From ffd98312ab407d70751377e3545fa236124a9c4c Mon Sep 17 00:00:00 2001 From: Andrey Vokin Date: Wed, 15 Mar 2017 14:58:03 +0100 Subject: [PATCH] SMRunner cleanup --- .../execution/testframework/sm/SMRunnerUtil.java | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/platform/smRunner/src/com/intellij/execution/testframework/sm/SMRunnerUtil.java b/platform/smRunner/src/com/intellij/execution/testframework/sm/SMRunnerUtil.java index cebf20b6559b..ef5bb630c95b 100644 --- a/platform/smRunner/src/com/intellij/execution/testframework/sm/SMRunnerUtil.java +++ b/platform/smRunner/src/com/intellij/execution/testframework/sm/SMRunnerUtil.java @@ -47,19 +47,6 @@ public class SMRunnerUtil { } } - public static void registerAsAction(final KeyStroke keyStroke, - final String actionKey, - final Runnable action, final JComponent component) { - final InputMap inputMap = component.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT); - - inputMap.put(keyStroke, actionKey); - component.getActionMap().put(inputMap.get(keyStroke), new AbstractAction() { - public void actionPerformed(final ActionEvent e) { - action.run(); - } - }); - } - public static void runInEventDispatchThread(final Runnable runnable, final ModalityState state) { try { ApplicationManager.getApplication().invokeAndWait(runnable, state);