Skip to content

Commit fd93e26

Browse files
committed
Remove redis_pool_new
1 parent fcc91a2 commit fd93e26

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

redis_session.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,6 @@ typedef struct {
6868

6969
} redis_pool;
7070

71-
PHP_REDIS_API redis_pool*
72-
redis_pool_new(TSRMLS_D) {
73-
return ecalloc(1, sizeof(redis_pool));
74-
}
75-
7671
PHP_REDIS_API void
7772
redis_pool_add(redis_pool *pool, RedisSock *redis_sock, int weight,
7873
int database, zend_string *prefix, zend_string *auth TSRMLS_DC) {
@@ -184,7 +179,7 @@ PS_OPEN_FUNC(redis)
184179
zval params, *param;
185180
int i, j, path_len;
186181

187-
redis_pool *pool = redis_pool_new(TSRMLS_C);
182+
redis_pool *pool = ecalloc(1, sizeof(*pool));
188183

189184
for (i = 0, j = 0, path_len = strlen(save_path); i < path_len; i = j + 1) {
190185
/* find beginning of url */

0 commit comments

Comments
 (0)