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.
diff --git a/src/core/ngx_rbtree.c b/src/core/ngx_rbtree.c index 969d549..377b82f 100644 --- a/src/core/ngx_rbtree.c +++ b/src/core/ngx_rbtree.c
@@ -174,12 +174,7 @@ } 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) {