mirror of
https://github.com/orbitdb/orbitdb.git
synced 2025-05-22 06:46:38 +00:00
Remove obsolete hasChild from OrbitNode
This commit is contained in:
parent
f9413aa89e
commit
d9101c188a
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user