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 // remove clusterNode
this.body.nodes[clusterNodeId].cleanup();
delete this.body.nodes[clusterNodeId]; delete this.body.nodes[clusterNodeId];
if (refreshData === true) { 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++) { for (let i = 0; i < ids.length; i++) {
let id = ids[i]; let id = ids[i];
nodes[id].cleanup();
delete nodes[id]; delete nodes[id];
} }

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

@ -227,10 +227,6 @@ class Node {
this.shape.setOptions(this.options); this.shape.setOptions(this.options);
} }
else { 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 // choose draw method depending on the shape
switch (this.options.shape) { switch (this.options.shape) {
case 'box': case 'box':
@ -438,14 +434,6 @@ class Node {
this.shape.boundingBox.bottom > obj.top this.shape.boundingBox.bottom > obj.top
); );
} }
/**
* clean all required things on delete.
* @returns {*}
*/
cleanup() {
return this.shape.cleanup();
}
} }
export default Node; 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; export default NodeBase;

Loading…
Cancel
Save