From bb9f198ffb15a8695b5db213e7324e80bc0be1fb Mon Sep 17 00:00:00 2001 From: Peter Kokot Date: Sat, 6 Jul 2024 22:15:27 +0200 Subject: [PATCH] Remove unused SMART_STR_PREALLOC --- ext/curl/interface.c | 2 -- ext/mysqlnd/mysqlnd_alloc.c | 1 - ext/pgsql/pgsql.c | 2 -- 3 files changed, 5 deletions(-) diff --git a/ext/curl/interface.c b/ext/curl/interface.c index 57860607be852..88beb69bc6aa4 100644 --- a/ext/curl/interface.c +++ b/ext/curl/interface.c @@ -53,8 +53,6 @@ #endif /* ZTS && HAVE_CURL_OLD_OPENSSL */ /* }}} */ -#define SMART_STR_PREALLOC 4096 - #include "zend_smart_str.h" #include "ext/standard/info.h" #include "ext/standard/file.h" diff --git a/ext/mysqlnd/mysqlnd_alloc.c b/ext/mysqlnd/mysqlnd_alloc.c index dd11483b685b5..06971b3487dd3 100644 --- a/ext/mysqlnd/mysqlnd_alloc.c +++ b/ext/mysqlnd/mysqlnd_alloc.c @@ -323,7 +323,6 @@ static char * _mysqlnd_pestrndup(const char * const ptr, size_t length, bool per #define SMART_STR_START_SIZE 2048 -#define SMART_STR_PREALLOC 512 #include "zend_smart_str.h" diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c index afaee983c2d3d..5f83f539438b3 100644 --- a/ext/pgsql/pgsql.c +++ b/ext/pgsql/pgsql.c @@ -26,8 +26,6 @@ #include #endif -#define SMART_STR_PREALLOC 512 - #include "php.h" #include "php_ini.h" #include "ext/standard/info.h"