From: Aleksander Ɓukasz Date: Tue, 15 Jul 2014 10:52:20 +0000 (+0200) Subject: editor: removing unused code X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/da569ef28d8d794efcd2de7754629c85c0de9104?ds=sidebyside;hp=--cc editor: removing unused code --- da569ef28d8d794efcd2de7754629c85c0de9104 diff --git a/src/editor/modules/documentCanvas/documentCanvas.js b/src/editor/modules/documentCanvas/documentCanvas.js index 7e70f7f..d88e698 100644 --- a/src/editor/modules/documentCanvas/documentCanvas.js +++ b/src/editor/modules/documentCanvas/documentCanvas.js @@ -74,15 +74,6 @@ return function(sandbox) { canvas.loadWlxmlDocument(wlxmlDocument); canvasWrapper.find('#rng-module-documentCanvas-contentWrapper').empty().append(canvas.view()); }, - highlightElement: function(node) { - canvas.toggleElementHighlight(node, true); - }, - dimElement: function(node) { - canvas.toggleElementHighlight(node, false); - }, - jumpToElement: function(node) { - canvas.setCurrentElement(node); - }, onAfterActionExecuted: function(action, ret) { if(ret && ret.isValid()) { logger.debug('The action returned a valid fragment'); diff --git a/src/editor/modules/rng/rng.js b/src/editor/modules/rng/rng.js index 73f83d5..e4731cc 100644 --- a/src/editor/modules/rng/rng.js +++ b/src/editor/modules/rng/rng.js @@ -22,9 +22,6 @@ return function(sandbox) { } var commands = { - jumpToDocumentElement: function(element) { - sandbox.getModule('documentCanvas').jumpToElement(element); - }, refreshCanvasSelection: function(selection) { var fragment = selection.toDocumentFragment(); sandbox.getModule('documentToolbar').setDocumentFragment(fragment);