1
0
mirror of https://github.com/chylex/IntelliJ-IdeaVim.git synced 2025-08-01 15:59:06 +02:00

Removed unused code

This commit is contained in:
Andrey Vlasovskikh 2014-03-26 01:49:01 +04:00
parent 9df61bba7e
commit 230364ac87

View File

@ -211,7 +211,6 @@ public class KeyParser {
public void registerAction(@NotNull Set<MappingMode> mappingModes, @NotNull String actName, @NotNull Command.Type cmdType, int cmdFlags, @NotNull Shortcut[] shortcuts,
@NotNull Argument.Type argType) {
for (Shortcut shortcut : shortcuts) {
// TODO: Check for shortcut conflicts with the current keymap
final KeyStroke[] keys = shortcut.getKeys();
for (KeyStroke key : keys) {
if (key.getKeyChar() == KeyEvent.CHAR_UNDEFINED) {
@ -222,21 +221,6 @@ public class KeyParser {
}
}
private static void checkKeyStrokeForConflicts(KeyStroke keyStroke) {
final KeymapManagerEx keymapManager = KeymapManagerEx.getInstanceEx();
final Keymap keymap = keymapManager.getActiveKeymap();
final KeyboardShortcut shortcut = new KeyboardShortcut(keyStroke, null);
final Map<String, ArrayList<KeyboardShortcut>> conflicts = keymap.getConflicts("", shortcut);
final ActionManager manager = ActionManager.getInstance();
for (Map.Entry<String, ArrayList<KeyboardShortcut>> entry : conflicts.entrySet()) {
final AnAction action = manager.getAction(entry.getKey());
if (action != null) {
// TODO: If preferences for the keystroke not set
// TODO: Else if used for Vim commands
}
}
}
/**
* @deprecated Inherit your action from {@link com.maddyhome.idea.vim.action.VimCommandAction} instead.
*/