Remove obsolete hasChild from OrbitNode

This commit is contained in:
haad 2016-03-04 21:47:34 +01:00
parent f9413aa89e
commit d9101c188a

View File

@ -64,17 +64,6 @@ class OrbitNode extends Node {
}); });
return await(createNode()); return await(createNode());
} }
static hasChild(a, b) {
for(let i = 0; i < a.next.length; i ++) {
if(typeof a.next[i] instanceof OrbitNode && b.compactId === a.next[i].compactId)
return true;
if(b.compactId === a.next[i])
return true;
}
return false;
}
} }
module.exports = OrbitNode; module.exports = OrbitNode;