diff --git a/lib/network/modules/Clustering.js b/lib/network/modules/Clustering.js index 9fe8c421..4348ad57 100644 --- a/lib/network/modules/Clustering.js +++ b/lib/network/modules/Clustering.js @@ -600,7 +600,6 @@ class ClusterEngine { } // remove clusterNode - this.body.nodes[clusterNodeId].cleanup(); delete this.body.nodes[clusterNodeId]; if (refreshData === true) { diff --git a/lib/network/modules/NodesHandler.js b/lib/network/modules/NodesHandler.js index 68e92e75..69c7a6fe 100644 --- a/lib/network/modules/NodesHandler.js +++ b/lib/network/modules/NodesHandler.js @@ -275,7 +275,6 @@ class NodesHandler { for (let i = 0; i < ids.length; i++) { let id = ids[i]; - nodes[id].cleanup(); delete nodes[id]; } diff --git a/lib/network/modules/components/Node.js b/lib/network/modules/components/Node.js index dabb6348..5fb93e2c 100644 --- a/lib/network/modules/components/Node.js +++ b/lib/network/modules/components/Node.js @@ -227,10 +227,6 @@ class Node { this.shape.setOptions(this.options); } else { - // clean up the shape if it is already made so the new shape can start clean. - if (this.shape) { - this.shape.cleanup(); - } // choose draw method depending on the shape switch (this.options.shape) { case 'box': @@ -438,14 +434,6 @@ class Node { this.shape.boundingBox.bottom > obj.top ); } - - /** - * clean all required things on delete. - * @returns {*} - */ - cleanup() { - return this.shape.cleanup(); - } } export default Node; diff --git a/lib/network/modules/components/nodes/util/NodeBase.js b/lib/network/modules/components/nodes/util/NodeBase.js index 8bde8dec..a5f74167 100644 --- a/lib/network/modules/components/nodes/util/NodeBase.js +++ b/lib/network/modules/components/nodes/util/NodeBase.js @@ -67,9 +67,6 @@ class NodeBase { } } } - - // possible cleanup for use in shapes - cleanup() {} } export default NodeBase; \ No newline at end of file