From 6dce8d976339dd8ce25b58b660d04a6f736797f7 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Sun, 1 May 2016 13:54:16 +0100 Subject: [PATCH] Remove final vestiges of undo/redo buttons --- core/modules/editor/engines/simple.js | 6 ------ core/modules/editor/factory.js | 7 ------- plugins/tiddlywiki/codemirror/engine.js | 15 --------------- 3 files changed, 28 deletions(-) diff --git a/core/modules/editor/engines/simple.js b/core/modules/editor/engines/simple.js index b446dff93..0b5891dcd 100644 --- a/core/modules/editor/engines/simple.js +++ b/core/modules/editor/engines/simple.js @@ -136,12 +136,6 @@ SimpleEngine.prototype.createTextOperation = function() { return null; }; -/* -Execute a command -*/ -SimpleEngine.prototype.execCommand = function() { -}; - /* Execute a text operation */ diff --git a/core/modules/editor/factory.js b/core/modules/editor/factory.js index c04c21c69..1cc189659 100644 --- a/core/modules/editor/factory.js +++ b/core/modules/editor/factory.js @@ -292,13 +292,6 @@ function editTextWidgetFactory(toolbarEngine,nonToolbarEngine) { return !this.parentDomNode.dispatchEvent(newEvent); }; - /* - Execute the specified command on the current engine - */ - EditTextWidget.prototype.execCommand = function(command /*, */) { - this.engine.execCommand.apply(this.engine,Array.prototype.slice.call(arguments,0)); - }; - return EditTextWidget; } diff --git a/plugins/tiddlywiki/codemirror/engine.js b/plugins/tiddlywiki/codemirror/engine.js index 55fb3a4c4..bec85f5d5 100755 --- a/plugins/tiddlywiki/codemirror/engine.js +++ b/plugins/tiddlywiki/codemirror/engine.js @@ -152,21 +152,6 @@ CodeMirrorEngine.prototype.executeTextOperation = function(operation) { return newText; }; -/* -Execute a command -*/ -CodeMirrorEngine.prototype.execCommand = function(command) { - this.cm.focus(); - switch(command) { - case "undo": - this.cm.execCommand("undo", false, null); - break; - case "redo": - this.cm.execCommand("redo", false, null); - break; - } -}; - exports.CodeMirrorEngine = CodeMirrorEngine; })();