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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user