Get rid of unused declarations

This commit is contained in:
Niels Dossche 2024-05-12 22:26:57 +02:00
parent e7af2bfd5b
commit 1fdbb0aba6
7 changed files with 0 additions and 9 deletions

View file

@ -36,8 +36,6 @@ zend_result dom_document_doctype_read(dom_object *obj, zval *retval);
zend_result dom_document_implementation_read(dom_object *obj, zval *retval); zend_result dom_document_implementation_read(dom_object *obj, zval *retval);
zend_result dom_modern_document_implementation_read(dom_object *obj, zval *retval); zend_result dom_modern_document_implementation_read(dom_object *obj, zval *retval);
zend_result dom_document_document_element_read(dom_object *obj, zval *retval); zend_result dom_document_document_element_read(dom_object *obj, zval *retval);
zend_result dom_document_actual_encoding_read(dom_object *obj, zval *retval);
zend_result dom_document_actual_encoding_write(dom_object *obj, zval *newval);
zend_result dom_document_encoding_read(dom_object *obj, zval *retval); zend_result dom_document_encoding_read(dom_object *obj, zval *retval);
zend_result dom_document_encoding_write(dom_object *obj, zval *newval); zend_result dom_document_encoding_write(dom_object *obj, zval *newval);
zend_result dom_document_standalone_read(dom_object *obj, zval *retval); zend_result dom_document_standalone_read(dom_object *obj, zval *retval);

View file

@ -30,8 +30,6 @@
* Since: * Since:
*/ */
extern zend_class_entry *dom_domexception_class_entry;
void php_dom_throw_error_with_message(int error_code, char *error_message, bool strict_error) /* {{{ */ void php_dom_throw_error_with_message(int error_code, char *error_message, bool strict_error) /* {{{ */
{ {
if (strict_error) { if (strict_error) {

View file

@ -30,7 +30,6 @@
#include <lexbor/encoding/encoding.h> #include <lexbor/encoding/encoding.h>
/* Implementation defined, but as HTML5 defaults in all other cases to UTF-8, we'll do the same. */ /* Implementation defined, but as HTML5 defaults in all other cases to UTF-8, we'll do the same. */
#define DOM_FALLBACK_ENCODING_NAME "UTF-8"
#define DOM_FALLBACK_ENCODING_ID LXB_ENCODING_UTF_8 #define DOM_FALLBACK_ENCODING_ID LXB_ENCODING_UTF_8
typedef struct dom_line_column_cache { typedef struct dom_line_column_cache {

View file

@ -662,7 +662,6 @@ static zval *dom_nodemap_read_dimension(zend_object *object, zval *offset, int t
static int dom_nodemap_has_dimension(zend_object *object, zval *member, int check_empty); static int dom_nodemap_has_dimension(zend_object *object, zval *member, int check_empty);
static zval *dom_modern_nodemap_read_dimension(zend_object *object, zval *offset, int type, zval *rv); static zval *dom_modern_nodemap_read_dimension(zend_object *object, zval *offset, int type, zval *rv);
static int dom_modern_nodemap_has_dimension(zend_object *object, zval *member, int check_empty); static int dom_modern_nodemap_has_dimension(zend_object *object, zval *member, int check_empty);
static zend_object *dom_objects_store_clone_obj(zend_object *zobject);
#ifdef LIBXML_XPATH_ENABLED #ifdef LIBXML_XPATH_ENABLED
void dom_xpath_objects_free_storage(zend_object *object); void dom_xpath_objects_free_storage(zend_object *object);

View file

@ -122,7 +122,6 @@ static inline dom_object_namespace_node *php_dom_namespace_node_obj_from_obj(zen
#define DOM_HTML_NO_DEFAULT_NS (1U << 31) #define DOM_HTML_NO_DEFAULT_NS (1U << 31)
dom_object *dom_object_get_data(xmlNodePtr obj);
dom_doc_propsptr dom_get_doc_props(php_libxml_ref_obj *document); dom_doc_propsptr dom_get_doc_props(php_libxml_ref_obj *document);
libxml_doc_props const* dom_get_doc_props_read_only(const php_libxml_ref_obj *document); libxml_doc_props const* dom_get_doc_props_read_only(const php_libxml_ref_obj *document);
zend_object *dom_objects_new(zend_class_entry *class_type); zend_object *dom_objects_new(zend_class_entry *class_type);

View file

@ -22,7 +22,6 @@
#include "php.h" #include "php.h"
#if defined(HAVE_LIBXML) && defined(HAVE_DOM) #if defined(HAVE_LIBXML) && defined(HAVE_DOM)
#include "php_dom.h" #include "php_dom.h"
#include "dom_ce.h"
#include "dom_properties.h" #include "dom_properties.h"
/* /*

View file

@ -20,7 +20,6 @@
#include "php.h" #include "php.h"
#if defined(HAVE_LIBXML) && defined(HAVE_DOM) #if defined(HAVE_LIBXML) && defined(HAVE_DOM)
#include "php_dom.h"
#include "xml_serializer.h" #include "xml_serializer.h"
#include "namespace_compat.h" #include "namespace_compat.h"
#include "serialize_common.h" #include "serialize_common.h"