mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Cleanup useless stuff in php_dom.c
This commit is contained in:
parent
b558a18c15
commit
f537ed9dfb
1 changed files with 2 additions and 8 deletions
|
@ -30,8 +30,6 @@
|
|||
#include "lexbor/lexbor/core/lexbor.h"
|
||||
|
||||
#include "ext/standard/info.h"
|
||||
#define PHP_XPATH 1
|
||||
#define PHP_XPTR 2
|
||||
|
||||
/* {{{ class entries */
|
||||
PHP_DOM_EXPORT zend_class_entry *dom_node_class_entry;
|
||||
|
@ -106,10 +104,6 @@ typedef struct _dom_prop_handler {
|
|||
dom_write_t write_func;
|
||||
} dom_prop_handler;
|
||||
|
||||
static zend_object_handlers* dom_get_obj_handlers(void) {
|
||||
return &dom_object_handlers;
|
||||
}
|
||||
|
||||
/* {{{ int dom_node_is_read_only(xmlNodePtr node) */
|
||||
int dom_node_is_read_only(xmlNodePtr node) {
|
||||
switch (node->type) {
|
||||
|
@ -511,7 +505,7 @@ static zend_object *dom_objects_store_clone_obj(zend_object *zobject) /* {{{ */
|
|||
dom_object *intern = php_dom_obj_from_obj(zobject);
|
||||
dom_object *clone = dom_objects_set_class(intern->std.ce);
|
||||
|
||||
clone->std.handlers = dom_get_obj_handlers();
|
||||
clone->std.handlers = &dom_object_handlers;
|
||||
|
||||
if (instanceof_function(intern->std.ce, dom_node_class_entry)) {
|
||||
xmlNodePtr node = (xmlNodePtr)dom_object_get_node(intern);
|
||||
|
@ -1084,7 +1078,7 @@ static dom_object* dom_objects_set_class(zend_class_entry *class_type)
|
|||
zend_object *dom_objects_new(zend_class_entry *class_type)
|
||||
{
|
||||
dom_object *intern = dom_objects_set_class(class_type);
|
||||
intern->std.handlers = dom_get_obj_handlers();
|
||||
intern->std.handlers = &dom_object_handlers;
|
||||
return &intern->std;
|
||||
}
|
||||
/* }}} */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue