@@ -39,11 +39,6 @@ static char *ngx_http_ipdb_merge_loc_conf(ngx_conf_t *cf,
3939static void ngx_http_ipdb_cleanup (void * data );
4040static char * ngx_http_ipdb_open (ngx_conf_t * cf , ngx_command_t * cmd , void * conf );
4141static 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-
4742static 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