Klaus Demo nginx / f7999fe
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. Vladimir Homutov 2 years ago
1 changed file(s) with 1 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
173173
174174 } else {
175175 subst = ngx_rbtree_min(node->right, sentinel);
176
177 if (subst->left != sentinel) {
178 temp = subst->left;
179 } else {
180 temp = subst->right;
181 }
176 temp = subst->right;
182177 }
183178
184179 if (subst == *root) {