Removed some leftover code

This commit is contained in:
jos 2015-12-30 16:11:22 +01:00
parent 8975101925
commit d934992cdf
1 changed files with 0 additions and 27 deletions

View File

@ -2251,33 +2251,6 @@ Node.prototype._onExpand = function (recurse) {
} }
}; };
/**
* Remove this node
* @private
*/
Node.prototype._onRemove = function() {
this.editor.highlighter.unhighlight();
var parent = this.parent;
var index = this.getIndex();
// adjust the focus
var oldSelection = this.editor.getSelection();
Node.blurNodes(this);
var newSelection = this.editor.getSelection();
// remove the node
this.parent._remove(this);
// store history action
this.editor._onAction('removeNodes', {
nodes: [this],
parent: parent,
index: index,
oldSelection: oldSelection,
newSelection: newSelection
});
};
/** /**
* Remove nodes * Remove nodes
* @param {Node[] | Node} nodes * @param {Node[] | Node} nodes