From: Michael Wallner Date: Wed, 12 Dec 2012 11:49:42 +0000 (+0000) Subject: remove unsued _to_struct X-Git-Tag: RELEASE_2_1_0_RC3~10^2^2~76 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=d6de91633c13a70ca16ea6267f764571d3714261;p=m6w6%2Fext-http remove unsued _to_struct --- diff --git a/php_http_version.c b/php_http_version.c index ffe62f1..41c8499 100644 --- a/php_http_version.c +++ b/php_http_version.c @@ -47,15 +47,6 @@ PHP_HTTP_API void php_http_version_to_string(php_http_version_t *v, char **str, *len = spprintf(str, 0, "%s%u.%u%s", pre ? pre : "", v->major, v->minor, post ? post : ""); } -PHP_HTTP_API void php_http_version_to_struct(php_http_version_t *v, HashTable *strct TSRMLS_DC) -{ - zval tmp; - - INIT_PZVAL_ARRAY(&tmp, strct); - add_assoc_long(&tmp, "major", v->major); - add_assoc_long(&tmp, "minor", v->minor); -} - PHP_HTTP_API void php_http_version_dtor(php_http_version_t *v) { (void) v; diff --git a/php_http_version.h b/php_http_version.h index 875614a..cfd3c99 100644 --- a/php_http_version.h +++ b/php_http_version.h @@ -21,7 +21,6 @@ typedef struct php_http_version { PHP_HTTP_API php_http_version_t *php_http_version_init(php_http_version_t *v, unsigned major, unsigned minor TSRMLS_DC); PHP_HTTP_API php_http_version_t *php_http_version_parse(php_http_version_t *v, const char *str TSRMLS_DC); PHP_HTTP_API void php_http_version_to_string(php_http_version_t *v, char **str, size_t *len, const char *pre, const char *post TSRMLS_DC); -PHP_HTTP_API void php_http_version_to_struct(php_http_version_t *v, HashTable *strct TSRMLS_DC); PHP_HTTP_API void php_http_version_dtor(php_http_version_t *v); PHP_HTTP_API void php_http_version_free(php_http_version_t **v);