From da569ef28d8d794efcd2de7754629c85c0de9104 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Tue, 15 Jul 2014 12:52:20 +0200 Subject: [PATCH] editor: removing unused code --- src/editor/modules/documentCanvas/documentCanvas.js | 9 --------- src/editor/modules/rng/rng.js | 3 --- 2 files changed, 12 deletions(-) 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); -- 2.20.1