Do not maintain root->prev in ph_remove.
This commit is contained in:
parent
543e2d61e6
commit
be6da4f663
@ -380,9 +380,6 @@ ph_remove(ph_t *ph, void *phn, size_t offset, ph_cmp_t cmp) {
|
||||
*/
|
||||
if (phn_lchild_get(phn, offset) == NULL) {
|
||||
ph->root = phn_next_get(phn, offset);
|
||||
if (ph->root != NULL) {
|
||||
phn_prev_set(ph->root, NULL, offset);
|
||||
}
|
||||
return;
|
||||
}
|
||||
ph_merge_aux(ph, offset, cmp);
|
||||
|
Loading…
Reference in New Issue
Block a user