Do not maintain root->prev in ph_remove.

This commit is contained in:
Amaury Séchet 2023-03-03 12:08:51 +00:00 committed by Qi Wang
parent 543e2d61e6
commit be6da4f663

View File

@ -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);