mirror of
https://github.com/nginx/nginx.git
synced 2024-11-24 04:49:01 +08:00
Core: removed dead code in ngx_rbtree_delete().
The result of ngx_rbtree_min() is always a node with the left child equal to sentinel, thus the check is unnecessary.
This commit is contained in:
parent
201062c83f
commit
f7999fe689
@ -174,12 +174,7 @@ ngx_rbtree_delete(ngx_rbtree_t *tree, ngx_rbtree_node_t *node)
|
||||
|
||||
} else {
|
||||
subst = ngx_rbtree_min(node->right, sentinel);
|
||||
|
||||
if (subst->left != sentinel) {
|
||||
temp = subst->left;
|
||||
} else {
|
||||
temp = subst->right;
|
||||
}
|
||||
temp = subst->right;
|
||||
}
|
||||
|
||||
if (subst == *root) {
|
||||
|
Loading…
Reference in New Issue
Block a user