Browse Source

removed node cleanup

kamadaKawai
AlexDM0 9 years ago
parent
commit
9a2bec6898
4 changed files with 0 additions and 17 deletions
  1. +0
    -1
      lib/network/modules/Clustering.js
  2. +0
    -1
      lib/network/modules/NodesHandler.js
  3. +0
    -12
      lib/network/modules/components/Node.js
  4. +0
    -3
      lib/network/modules/components/nodes/util/NodeBase.js

+ 0
- 1
lib/network/modules/Clustering.js View File

@ -600,7 +600,6 @@ class ClusterEngine {
}
// remove clusterNode
this.body.nodes[clusterNodeId].cleanup();
delete this.body.nodes[clusterNodeId];
if (refreshData === true) {

+ 0
- 1
lib/network/modules/NodesHandler.js View File

@ -275,7 +275,6 @@ class NodesHandler {
for (let i = 0; i < ids.length; i++) {
let id = ids[i];
nodes[id].cleanup();
delete nodes[id];
}

+ 0
- 12
lib/network/modules/components/Node.js View File

@ -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;

+ 0
- 3
lib/network/modules/components/nodes/util/NodeBase.js View File

@ -67,9 +67,6 @@ class NodeBase {
}
}
}
// possible cleanup for use in shapes
cleanup() {}
}
export default NodeBase;

Loading…
Cancel
Save