From 87ac2b1916b72b205868b74ce21ccb1a7f584188 Mon Sep 17 00:00:00 2001 From: Niels Dossche <7771979+ndossche@users.noreply.github.com> Date: Thu, 13 Nov 2025 00:08:50 +0100 Subject: [PATCH] xml: Drop unused version function --- ext/xml/compat.c | 5 ----- ext/xml/expat_compat.h | 1 - 2 files changed, 6 deletions(-) diff --git a/ext/xml/compat.c b/ext/xml/compat.c index 6bdb2695c7d5f..450362ef7efe4 100644 --- a/ext/xml/compat.c +++ b/ext/xml/compat.c @@ -652,11 +652,6 @@ XML_GetCurrentByteCount(XML_Parser parser) return (int) XML_GetCurrentByteIndex(parser); } -PHP_XML_API const XML_Char *XML_ExpatVersion(void) -{ - return (const XML_Char *) "1.0"; -} - PHP_XML_API void XML_ParserFree(XML_Parser parser) { diff --git a/ext/xml/expat_compat.h b/ext/xml/expat_compat.h index 94ca8aeb4c351..1cb6f5d140e5b 100644 --- a/ext/xml/expat_compat.h +++ b/ext/xml/expat_compat.h @@ -148,7 +148,6 @@ PHP_XML_API int XML_GetCurrentLineNumber(XML_Parser); PHP_XML_API int XML_GetCurrentColumnNumber(XML_Parser); PHP_XML_API long XML_GetCurrentByteIndex(XML_Parser); PHP_XML_API int XML_GetCurrentByteCount(XML_Parser); -PHP_XML_API const XML_Char *XML_ExpatVersion(void); PHP_XML_API void XML_ParserFree(XML_Parser); #elif defined(HAVE_LIBEXPAT)