diff options
author | Igor Sysoev <igor@sysoev.ru> | 2006-10-25 14:13:27 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2006-10-25 14:13:27 +0000 |
commit | 297f2bb4b97e055d50a86e2e4107e396fafe7cfe (patch) | |
tree | ef4cb69541d4fbacc004ddeafe0f85796c5cac3d /src | |
parent | 2aeb32e564fcaf1d6341dd5c97618c9c531e8184 (diff) | |
download | nginx-297f2bb4b97e055d50a86e2e4107e396fafe7cfe.tar.gz nginx-297f2bb4b97e055d50a86e2e4107e396fafe7cfe.zip |
axe unused code
Diffstat (limited to 'src')
-rw-r--r-- | src/http/modules/ngx_http_proxy_module.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/src/http/modules/ngx_http_proxy_module.c b/src/http/modules/ngx_http_proxy_module.c index f85454968..a9df3d735 100644 --- a/src/http/modules/ngx_http_proxy_module.c +++ b/src/http/modules/ngx_http_proxy_module.c @@ -2105,32 +2105,6 @@ peers: return NGX_CONF_ERROR; } - -#if 0 - conf->headers_set_hash = ngx_pcalloc(cf->pool, sizeof(ngx_hash0_t)); - if (conf->headers_set_hash == NULL) { - return NGX_CONF_ERROR; - } - - conf->headers_set_hash->max_size = 100; - conf->headers_set_hash->bucket_limit = 1; - conf->headers_set_hash->bucket_size = sizeof(ngx_str_t); - conf->headers_set_hash->name = "proxy_headers"; - - if (ngx_hash0_init(conf->headers_set_hash, cf->pool, - conf->headers_names->elts, conf->headers_names->nelts) - != NGX_OK) - { - return NGX_CONF_ERROR; - } - - ngx_log_debug2(NGX_LOG_DEBUG_HTTP, cf->log, 0, - "proxy_headers hash size: %ui, " - "max buckets per entry: %ui", - conf->headers_set_hash->hash_size, - conf->headers_set_hash->min_buckets); -#endif - return NGX_CONF_OK; } |