@@ -114,9 +114,6 @@ typedef enum _dom_iterator_type {
114114 DOM_HTMLCOLLECTION ,
115115} dom_iterator_type ;
116116
117- struct _php_dom_libxml_ns_mapper ;
118- typedef struct _php_dom_libxml_ns_mapper php_dom_libxml_ns_mapper ;
119-
120117static inline dom_object_namespace_node * php_dom_namespace_node_obj_from_obj (zend_object * obj ) {
121118 return (dom_object_namespace_node * )((char * )(obj ) - XtOffsetOf (dom_object_namespace_node , dom .std ));
122119}
@@ -178,27 +175,6 @@ void dom_document_convert_to_modern(php_libxml_ref_obj *document, xmlDocPtr lxml
178175dom_object * php_dom_instantiate_object_helper (zval * return_value , zend_class_entry * ce , xmlNodePtr obj , dom_object * parent );
179176xmlDocPtr php_dom_create_html_doc (void );
180177
181- static zend_always_inline xmlNodePtr php_dom_next_in_tree_order (const xmlNode * nodep , const xmlNode * basep )
182- {
183- if (nodep -> next ) {
184- return nodep -> next ;
185- } else {
186- /* Go upwards, until we find a parent node with a next sibling, or until we hit the base. */
187- do {
188- nodep = nodep -> parent ;
189- if (nodep == basep ) {
190- return NULL ;
191- }
192- /* This shouldn't happen, unless there's an invalidation bug somewhere. */
193- if (UNEXPECTED (nodep == NULL )) {
194- zend_throw_error (NULL , "Current node in traversal is not in the document. Please report this as a bug in php-src." );
195- return NULL ;
196- }
197- } while (nodep -> next == NULL );
198- return nodep -> next ;
199- }
200- }
201-
202178typedef enum {
203179 DOM_LOAD_STRING = 0 ,
204180 DOM_LOAD_FILE = 1 ,
@@ -287,17 +263,6 @@ static zend_always_inline void php_dom_mark_cache_tag_up_to_date_from_node(php_l
287263 }
288264}
289265
290- static zend_always_inline bool php_dom_follow_spec_doc_ref (const php_libxml_ref_obj * document )
291- {
292- return document != NULL && document -> class_type == PHP_LIBXML_CLASS_MODERN ;
293- }
294-
295- static zend_always_inline bool php_dom_follow_spec_intern (const dom_object * intern )
296- {
297- ZEND_ASSERT (intern != NULL );
298- return php_dom_follow_spec_doc_ref (intern -> document );
299- }
300-
301266static zend_always_inline bool php_dom_follow_spec_node (const xmlNode * node )
302267{
303268 ZEND_ASSERT (node != NULL );
@@ -311,12 +276,6 @@ static zend_always_inline bool php_dom_follow_spec_node(const xmlNode *node)
311276 return false;
312277}
313278
314- static zend_always_inline php_dom_libxml_ns_mapper * php_dom_get_ns_mapper (dom_object * intern )
315- {
316- ZEND_ASSERT (intern -> document != NULL );
317- return (php_dom_libxml_ns_mapper * ) intern -> document -> private_data ;
318- }
319-
320279PHP_MINIT_FUNCTION (dom );
321280PHP_MSHUTDOWN_FUNCTION (dom );
322281PHP_MINFO_FUNCTION (dom );
0 commit comments