mirror of
https://github.com/nginx/nginx.git
synced 2025-02-25 18:55:26 -06:00
delete unused ngx_http_uwsgi_add_variables()
This commit is contained in:
parent
c1f3d6edb7
commit
4ddb52551c
@ -52,7 +52,6 @@ static void ngx_http_uwsgi_abort_request(ngx_http_request_t *r);
|
|||||||
static void ngx_http_uwsgi_finalize_request(ngx_http_request_t *r,
|
static void ngx_http_uwsgi_finalize_request(ngx_http_request_t *r,
|
||||||
ngx_int_t rc);
|
ngx_int_t rc);
|
||||||
|
|
||||||
static ngx_int_t ngx_http_uwsgi_add_variables(ngx_conf_t *cf);
|
|
||||||
static void *ngx_http_uwsgi_create_loc_conf(ngx_conf_t *cf);
|
static void *ngx_http_uwsgi_create_loc_conf(ngx_conf_t *cf);
|
||||||
static char *ngx_http_uwsgi_merge_loc_conf(ngx_conf_t *cf, void *parent,
|
static char *ngx_http_uwsgi_merge_loc_conf(ngx_conf_t *cf, void *parent,
|
||||||
void *child);
|
void *child);
|
||||||
@ -252,7 +251,7 @@ static ngx_command_t ngx_http_uwsgi_commands[] = {
|
|||||||
|
|
||||||
|
|
||||||
static ngx_http_module_t ngx_http_uwsgi_module_ctx = {
|
static ngx_http_module_t ngx_http_uwsgi_module_ctx = {
|
||||||
ngx_http_uwsgi_add_variables, /* preconfiguration */
|
NULL, /* preconfiguration */
|
||||||
NULL, /* postconfiguration */
|
NULL, /* postconfiguration */
|
||||||
|
|
||||||
NULL, /* create main configuration */
|
NULL, /* create main configuration */
|
||||||
@ -282,12 +281,6 @@ ngx_module_t ngx_http_uwsgi_module = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
static ngx_http_variable_t ngx_http_uwsgi_vars[] = {
|
|
||||||
|
|
||||||
{ ngx_null_string, NULL, NULL, 0, 0, 0 }
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
static ngx_str_t ngx_http_uwsgi_hide_headers[] = {
|
static ngx_str_t ngx_http_uwsgi_hide_headers[] = {
|
||||||
ngx_string("Status"),
|
ngx_string("Status"),
|
||||||
ngx_string("X-Accel-Expires"),
|
ngx_string("X-Accel-Expires"),
|
||||||
@ -1063,25 +1056,6 @@ ngx_http_uwsgi_finalize_request(ngx_http_request_t *r, ngx_int_t rc)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static ngx_int_t
|
|
||||||
ngx_http_uwsgi_add_variables(ngx_conf_t *cf)
|
|
||||||
{
|
|
||||||
ngx_http_variable_t *var, *v;
|
|
||||||
|
|
||||||
for (v = ngx_http_uwsgi_vars; v->name.len; v++) {
|
|
||||||
var = ngx_http_add_variable(cf, &v->name, v->flags);
|
|
||||||
if (var == NULL) {
|
|
||||||
return NGX_ERROR;
|
|
||||||
}
|
|
||||||
|
|
||||||
var->get_handler = v->get_handler;
|
|
||||||
var->data = v->data;
|
|
||||||
}
|
|
||||||
|
|
||||||
return NGX_OK;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
static void *
|
static void *
|
||||||
ngx_http_uwsgi_create_loc_conf(ngx_conf_t *cf)
|
ngx_http_uwsgi_create_loc_conf(ngx_conf_t *cf)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user