fix(wavl): do not propagate deletion rebalance all the way
Do not propage bottom-up deletion rebalance all the way to the root. Signed-off-by: Matej Focko <mfocko@redhat.com>
This commit is contained in:
parent
68e6da262c
commit
0ef76257af
1 changed files with 1 additions and 4 deletions
3
wavl.js
3
wavl.js
|
@ -155,9 +155,6 @@ class WAVLTree extends AVLTree {
|
|||
}
|
||||
|
||||
deleteRebalance(node, parent) {
|
||||
while (node || parent) {
|
||||
this.deleteFixup(node, parent);
|
||||
([node, parent] = parent), parent ? parent.parent : null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue