From 8128d17cc2668a6a9810fb0cc5b27fdb54c63f2e Mon Sep 17 00:00:00 2001 From: Niels Dossche <7771979+nielsdos@users.noreply.github.com> Date: Wed, 24 Jan 2024 19:44:17 +0100 Subject: [PATCH] Fix build warning in ext/mbstring --- ext/mbstring/mbstring.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/ext/mbstring/mbstring.c b/ext/mbstring/mbstring.c index bae977e2ca46..57178317066c 100644 --- a/ext/mbstring/mbstring.c +++ b/ext/mbstring/mbstring.c @@ -277,14 +277,6 @@ static const mbfl_encoding *php_mb_get_encoding_or_pass(const char *encoding_nam return mbfl_name2encoding(encoding_name); } -static const mbfl_encoding *php_mb_get_encoding_or_pass_ex(const char *encoding_name, size_t encoding_name_len) { - if (strncmp(encoding_name, "pass", encoding_name_len) == 0) { - return &mbfl_encoding_pass; - } - - return mbfl_name2encoding_ex(encoding_name, encoding_name_len); -} - static size_t count_commas(const char *p, const char *end) { size_t count = 0; while ((p = memchr(p, ',', end - p))) {