remove unsued _to_struct
authorMichael Wallner <mike@php.net>
Wed, 12 Dec 2012 11:49:42 +0000 (11:49 +0000)
committerMichael Wallner <mike@php.net>
Wed, 12 Dec 2012 11:49:42 +0000 (11:49 +0000)
php_http_version.c
php_http_version.h

index ffe62f188851373ebfd243704ff05d0ce2fe5209..41c849925bbe98062ba2c0d86eefa7047578ec7b 100644 (file)
@@ -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;
index 875614a4f63f0cae55ea8c9814742807aeabbcbf..cfd3c999ee416cd575d389a669e00dbefc92d79c 100644 (file)
@@ -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);