@@ -114,9 +114,6 @@ typedef enum _dom_iterator_type {
114
114
DOM_HTMLCOLLECTION ,
115
115
} dom_iterator_type ;
116
116
117
- struct _php_dom_libxml_ns_mapper ;
118
- typedef struct _php_dom_libxml_ns_mapper php_dom_libxml_ns_mapper ;
119
-
120
117
static inline dom_object_namespace_node * php_dom_namespace_node_obj_from_obj (zend_object * obj ) {
121
118
return (dom_object_namespace_node * )((char * )(obj ) - XtOffsetOf (dom_object_namespace_node , dom .std ));
122
119
}
@@ -178,27 +175,6 @@ void dom_document_convert_to_modern(php_libxml_ref_obj *document, xmlDocPtr lxml
178
175
dom_object * php_dom_instantiate_object_helper (zval * return_value , zend_class_entry * ce , xmlNodePtr obj , dom_object * parent );
179
176
xmlDocPtr php_dom_create_html_doc (void );
180
177
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
-
202
178
typedef enum {
203
179
DOM_LOAD_STRING = 0 ,
204
180
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
287
263
}
288
264
}
289
265
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
-
301
266
static zend_always_inline bool php_dom_follow_spec_node (const xmlNode * node )
302
267
{
303
268
ZEND_ASSERT (node != NULL );
@@ -311,12 +276,6 @@ static zend_always_inline bool php_dom_follow_spec_node(const xmlNode *node)
311
276
return false;
312
277
}
313
278
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
-
320
279
PHP_MINIT_FUNCTION (dom );
321
280
PHP_MSHUTDOWN_FUNCTION (dom );
322
281
PHP_MINFO_FUNCTION (dom );
0 commit comments