1
0
mirror of https://github.com/php/php-src.git synced 2026-04-27 10:16:41 +02:00

Remove impossible condition

The parent's child must exist because otherwise this node could not have
a parent node.
This commit is contained in:
Niels Dossche
2024-07-20 19:17:28 +02:00
parent 1fc2ddc996
commit 74116a4ade
-6
View File
@@ -684,12 +684,6 @@ static zend_result dom_child_removal_preconditions(const xmlNode *child, int str
return FAILURE;
}
xmlNodePtr children = child->parent->children;
if (!children) {
php_dom_throw_error(NOT_FOUND_ERR, stricterror);
return FAILURE;
}
return SUCCESS;
}