diff options
author | Pavlo Yatsukhnenko <yatsukhnenko@gmail.com> | 2022-01-16 17:32:46 +0300 |
---|---|---|
committer | Pavlo Yatsukhnenko <yatsukhnenko@gmail.com> | 2022-01-16 17:32:46 +0300 |
commit | 8e58c9d4d6fdd364016165f805274d7c0db429e4 (patch) | |
tree | db8727da09c6d1c085d89531a715512963d88382 | |
parent | 0059e77fe5491ed2da00ca181138f643b95fb4cb (diff) |
Remove unused redis_single_line_reply
-rw-r--r-- | library.c | 24 | ||||
-rw-r--r-- | library.h | 2 |
2 files changed, 0 insertions, 26 deletions
@@ -2095,30 +2095,6 @@ PHP_REDIS_API int redis_string_response(INTERNAL_FUNCTION_PARAMETERS, RedisSock return SUCCESS; } -PHP_REDIS_API -void redis_single_line_reply(INTERNAL_FUNCTION_PARAMETERS, RedisSock *redis_sock, - zval *z_tab, void *ctx) -{ - char buffer[4096]; - size_t len; - - if (redis_sock_read_single_line(redis_sock, buffer, sizeof(buffer), &len, 1) < 0) { - if (IS_ATOMIC(redis_sock)) { - RETURN_FALSE; - } else { - add_next_index_bool(z_tab, 0); - } - return; - } - - //str = estrndup(buffer, len); - if (IS_ATOMIC(redis_sock)) { - RETVAL_STRINGL(buffer, len); - } else { - add_next_index_stringl(z_tab, buffer, len); - } -} - /* like string response, but never unserialized. */ PHP_REDIS_API int redis_ping_response(INTERNAL_FUNCTION_PARAMETERS, RedisSock *redis_sock, @@ -63,8 +63,6 @@ PHP_REDIS_API int redis_boolean_response_impl(INTERNAL_FUNCTION_PARAMETERS, Redi PHP_REDIS_API int redis_boolean_response(INTERNAL_FUNCTION_PARAMETERS, RedisSock *redis_sock, zval *z_tab, void *ctx); PHP_REDIS_API int redis_bulk_double_response(INTERNAL_FUNCTION_PARAMETERS, RedisSock *redis_sock, zval *z_tab, void *ctx); PHP_REDIS_API int redis_string_response(INTERNAL_FUNCTION_PARAMETERS, RedisSock *redis_sock, zval *z_tab, void *ctx); -PHP_REDIS_API void redis_single_line_reply(INTERNAL_FUNCTION_PARAMETERS, RedisSock *redis_sock, - zval *z_tab, void *ctx); PHP_REDIS_API int redis_ping_response(INTERNAL_FUNCTION_PARAMETERS, RedisSock *redis_sock, zval *z_tab, void *ctx); PHP_REDIS_API int redis_info_response(INTERNAL_FUNCTION_PARAMETERS, RedisSock *redis_sock, zval *z_tab, void *ctx); PHP_REDIS_API void redis_parse_info_response(char *response, zval *z_ret); |