Skip to content

Commit 43ee690

Browse files
committed
removed useless code.
1 parent 40adea0 commit 43ee690

File tree

1 file changed

+1
-56
lines changed

1 file changed

+1
-56
lines changed

src/ngx_http_form_input_module.c

Lines changed: 1 addition & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,6 @@
1515
#define form_urlencoded_type_len (sizeof(form_urlencoded_type) - 1)
1616

1717

18-
#if 0
19-
20-
typedef struct {
21-
ngx_flag_t enabled;
22-
} ngx_http_form_input_loc_conf_t;
23-
24-
#endif
25-
26-
2718
typedef struct {
2819
unsigned used; /* :1 */
2920
} ngx_http_form_input_main_conf_t;
@@ -40,16 +31,6 @@ static ngx_int_t ngx_http_set_form_input(ngx_http_request_t *r, ngx_str_t *res,
4031
static char *ngx_http_set_form_input_conf_handler(ngx_conf_t *cf,
4132
ngx_command_t *cmd, void *conf);
4233
static void *ngx_http_form_input_create_main_conf(ngx_conf_t *cf);
43-
44-
45-
#if 0
46-
47-
static void *ngx_http_form_input_create_loc_conf(ngx_conf_t *cf);
48-
static char *ngx_http_form_input_merge_loc_conf(ngx_conf_t *cf, void *parent,
49-
void *child);
50-
51-
#endif
52-
5334
static ngx_int_t ngx_http_form_input_init(ngx_conf_t *cf);
5435
static ngx_int_t ngx_http_form_input_handler(ngx_http_request_t *r);
5536
static void ngx_http_form_input_post_read(ngx_http_request_t *r);
@@ -88,7 +69,7 @@ static ngx_http_module_t ngx_http_form_input_module_ctx = {
8869
NULL, /* merge server configuration */
8970

9071
NULL, /* create location configuration */
91-
NULL /* merge location configuration */
72+
NULL /* merge location configuration */
9273
};
9374

9475

@@ -371,32 +352,6 @@ ngx_http_set_form_input_conf_handler(ngx_conf_t *cf, ngx_command_t *cmd,
371352
}
372353

373354

374-
#if 0
375-
376-
static void *
377-
ngx_http_form_input_create_loc_conf(ngx_conf_t *cf)
378-
{
379-
ngx_http_form_input_loc_conf_t *conf;
380-
381-
conf = ngx_palloc(cf->pool, sizeof(ngx_http_form_input_loc_conf_t));
382-
383-
if (conf == NULL) {
384-
return NULL;
385-
}
386-
387-
return conf;
388-
}
389-
390-
391-
static char *
392-
ngx_http_form_input_merge_loc_conf(ngx_conf_t *cf, void *parent, void *child)
393-
{
394-
return NGX_CONF_OK;
395-
}
396-
397-
#endif
398-
399-
400355
/* register a new rewrite phase handler */
401356
static ngx_int_t
402357
ngx_http_form_input_init(ngx_conf_t *cf)
@@ -406,16 +361,6 @@ ngx_http_form_input_init(ngx_conf_t *cf)
406361
ngx_http_core_main_conf_t *cmcf;
407362
ngx_http_form_input_main_conf_t *fmcf;
408363

409-
/*
410-
ngx_http_form_input_loc_conf_t *lcf;
411-
412-
lcf = ngx_http_conf_get_module_loc_conf(cf, ngx_http_form_input_module);
413-
if (lcf->enabled != 1) {
414-
dd("set_form_input not used");
415-
return NGX_OK;
416-
}
417-
*/
418-
419364
fmcf = ngx_http_conf_get_module_main_conf(cf, ngx_http_form_input_module);
420365

421366
if (!fmcf->used) {

0 commit comments

Comments
 (0)