Bug/Task WISE-430 fixed: clean-up Designer - remove unused function

addDraggedNode

--HG--
branch : clean-up
This commit is contained in:
Christina Korger 2015-03-30 11:41:08 +02:00
parent 09d3741dae
commit b4b1c6d67f

View File

@ -545,25 +545,6 @@ mindplot.Designer = new Class(/** @lends Designer */{
return childModel;
},
/**
* @param {Events} event
* @param {mindplot.model.NodeModel} model
* @todo not used
*/
addDraggedNode:function (event, model) {
$assert(event, "event can not be null");
$assert(model, "model can not be null");
// Position far from the visual area ...
model.setPosition(1000, 1000);
this._actionDispatcher.addTopics([model]);
var topic = this.getModel().findTopicById(model.getId());
// Simulate a mouse down event to start the dragging ...
topic.fireEvent("mousedown", event);
},
/**
* creates a sibling or child node of the selected node, if the selected node is the
* central topic