Skip to content

Commit c33fbbb

Browse files
Update src/editor/Editor.js
1 parent 9eb7705 commit c33fbbb

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

src/editor/Editor.js

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -232,20 +232,6 @@ define(function (require, exports, module) {
232232
CodeHintManager.handleKeyEvent(editor, event);
233233
}
234234

235-
function _handleSelectAll() {
236-
var result = new $.Deferred(),
237-
editor = EditorManager.getFocusedEditor();
238-
239-
if (editor) {
240-
editor._selectAllVisible();
241-
result.resolve();
242-
} else {
243-
result.reject(); // command not handled
244-
}
245-
246-
return result.promise();
247-
}
248-
249235
/**
250236
* List of all current (non-destroy()ed) Editor instances. Needed when changing global preferences
251237
* that affect all editors, e.g. tabbing or color scheme settings.
@@ -1192,9 +1178,6 @@ define(function (require, exports, module) {
11921178
Editor.getIndentUnit = function (value) {
11931179
return _indentUnit;
11941180
};
1195-
1196-
// Global commands that affect the currently focused Editor instance, wherever it may be
1197-
CommandManager.register(Strings.CMD_SELECT_ALL, Commands.EDIT_SELECT_ALL, _handleSelectAll);
11981181

11991182
// Define public API
12001183
exports.Editor = Editor;

0 commit comments

Comments
 (0)