From d9101c188aff2561f81d8f05e560a3f6a55a72f5 Mon Sep 17 00:00:00 2001 From: haad Date: Fri, 4 Mar 2016 21:47:34 +0100 Subject: [PATCH] Remove obsolete hasChild from OrbitNode --- src/list/OrbitNode.js | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/list/OrbitNode.js b/src/list/OrbitNode.js index 387819d..9c0224e 100644 --- a/src/list/OrbitNode.js +++ b/src/list/OrbitNode.js @@ -64,17 +64,6 @@ class OrbitNode extends Node { }); 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;