Skip to content

Commit 7067bb2

Browse files
committed
Clean the invalid code
1 parent 0a43913 commit 7067bb2

File tree

1 file changed

+0
-31
lines changed

1 file changed

+0
-31
lines changed

ngx_http_ipdb_module.c

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,6 @@ static char *ngx_http_ipdb_merge_loc_conf(ngx_conf_t *cf,
3939
static void ngx_http_ipdb_cleanup(void *data);
4040
static char *ngx_http_ipdb_open(ngx_conf_t *cf, ngx_command_t *cmd, void *conf);
4141
static char *ngx_http_ipdb_proxy(ngx_conf_t *cf, ngx_command_t *cmd, void *conf);
42-
#if 0
43-
static char *ngx_http_ipdb_spec_addr(ngx_conf_t *cf, ngx_command_t *cmd,
44-
void *conf);
45-
#endif
46-
4742
static ngx_int_t ngx_http_ipdb_variable(ngx_http_request_t *r,
4843
ngx_http_variable_value_t *v, uintptr_t data);
4944

@@ -353,29 +348,6 @@ ngx_http_ipdb_proxy(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
353348
return NGX_CONF_OK;
354349
}
355350

356-
#if 0
357-
static char *
358-
ngx_http_ipdb_spec_addr(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
359-
{
360-
ngx_str_t *value;
361-
ngx_http_ipdb_main_conf_t *imcf = conf;
362-
ngx_http_compile_complex_value_t ccv;
363-
364-
value = cf->args->elts;
365-
366-
ngx_memzero(&ccv, sizeof(ngx_http_compile_complex_value_t));
367-
368-
ccv.cf = cf;
369-
ccv.value = &value[1];
370-
ccv.complex_value = &imcf->spec_addr;
371-
372-
if (ngx_http_compile_complex_value(&ccv) != NGX_OK) {
373-
return NGX_CONF_ERROR;
374-
}
375-
376-
return NGX_CONF_OK;
377-
}
378-
#endif
379351

380352
// "a\tb\t\tc"
381353
// ""
@@ -591,9 +563,6 @@ ngx_http_ipdb_variable(ngx_http_request_t *r, ngx_http_variable_value_t *v,
591563
"ngx_http_ipdb_variable, %l res: \"%V\"", data, &debug);
592564
#endif
593565

594-
// ngx_log_error(NGX_LOG_INFO, r->connection->log, 0,
595-
// "=========ngx_http_ipdb_variable. res: %s", p);
596-
597566
v->data = ngx_pnalloc(r->pool, len);
598567
if (v->data == NULL) {
599568
return NGX_ERROR;

0 commit comments

Comments
 (0)