Skip to content

Commit 1d57300

Browse files
committed
Remove unused arguments
1 parent 01bab84 commit 1d57300

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

ext/dom/namespace_compat.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ static zend_always_inline zend_long dom_mangle_pointer_for_key(void *ptr)
363363
#endif
364364
}
365365

366-
static zend_always_inline void php_dom_libxml_reconcile_modern_single_node(dom_libxml_reconcile_ctx *ctx, xmlNodePtr ns_holder, xmlNodePtr node)
366+
static zend_always_inline void php_dom_libxml_reconcile_modern_single_node(dom_libxml_reconcile_ctx *ctx, xmlNodePtr node)
367367
{
368368
ZEND_ASSERT(node->ns != NULL);
369369

@@ -404,12 +404,12 @@ static zend_always_inline void php_dom_libxml_reconcile_modern_single_element_no
404404
ZEND_ASSERT(node->nsDef == NULL);
405405

406406
if (node->ns != NULL) {
407-
php_dom_libxml_reconcile_modern_single_node(ctx, node, node);
407+
php_dom_libxml_reconcile_modern_single_node(ctx, node);
408408
}
409409

410410
for (xmlAttrPtr attr = node->properties; attr != NULL; attr = attr->next) {
411411
if (attr->ns != NULL) {
412-
php_dom_libxml_reconcile_modern_single_node(ctx, node, (xmlNodePtr) attr);
412+
php_dom_libxml_reconcile_modern_single_node(ctx, (xmlNodePtr) attr);
413413
}
414414
}
415415
}

ext/dom/node.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -978,7 +978,7 @@ static void dom_node_insert_before_legacy(zval *return_value, zval *ref, dom_obj
978978
/* }}} end dom_node_insert_before */
979979

980980
/* https://dom.spec.whatwg.org/#dom-node-insertbefore */
981-
static void dom_node_insert_before_modern(zval *return_value, zval *ref, dom_object *intern, dom_object *childobj, xmlNodePtr parentp, xmlNodePtr child)
981+
static void dom_node_insert_before_modern(zval *return_value, zval *ref, dom_object *intern, xmlNodePtr parentp, xmlNodePtr child)
982982
{
983983
xmlNodePtr refp = NULL;
984984
dom_object *refobjp;
@@ -1010,7 +1010,7 @@ static void dom_node_insert_before(INTERNAL_FUNCTION_PARAMETERS, bool modern)
10101010
DOM_GET_OBJ(child, node, xmlNodePtr, childobj);
10111011

10121012
if (modern) {
1013-
dom_node_insert_before_modern(return_value, ref, intern, childobj, parentp, child);
1013+
dom_node_insert_before_modern(return_value, ref, intern, parentp, child);
10141014
} else {
10151015
dom_node_insert_before_legacy(return_value, ref, intern, childobj, parentp, child);
10161016
}

0 commit comments

Comments
 (0)