[PATCH 2 of 6] GeoIP: removed unused ngx_http_geoip_var_t structure

Maxim Dounin mdounin at mdounin.ru
Wed Dec 3 16:31:06 UTC 2025


# HG changeset patch
# User Maxim Dounin <mdounin at mdounin.ru>
# Date 1764679196 -10800
#      Tue Dec 02 15:39:56 2025 +0300
# Node ID 354839370549e47835b001649a0f32c76517677c
# Parent  e83601fadc0a6b7859b6af64626a2b1fb9134ad8
GeoIP: removed unused ngx_http_geoip_var_t structure.

It was never used, since introduction of the module in 2985:31af2d1a742e,
and hence removed.

diff --git a/src/http/modules/ngx_http_geoip_module.c b/src/http/modules/ngx_http_geoip_module.c
--- a/src/http/modules/ngx_http_geoip_module.c
+++ b/src/http/modules/ngx_http_geoip_module.c
@@ -32,12 +32,6 @@ typedef struct {
 } ngx_http_geoip_conf_t;
 
 
-typedef struct {
-    ngx_str_t    *name;
-    uintptr_t     data;
-} ngx_http_geoip_var_t;
-
-
 typedef const char *(*ngx_http_geoip_variable_handler_pt)(GeoIP *,
     u_long addr);
 
diff --git a/src/stream/ngx_stream_geoip_module.c b/src/stream/ngx_stream_geoip_module.c
--- a/src/stream/ngx_stream_geoip_module.c
+++ b/src/stream/ngx_stream_geoip_module.c
@@ -30,12 +30,6 @@ typedef struct {
 } ngx_stream_geoip_conf_t;
 
 
-typedef struct {
-    ngx_str_t    *name;
-    uintptr_t     data;
-} ngx_stream_geoip_var_t;
-
-
 typedef const char *(*ngx_stream_geoip_variable_handler_pt)(GeoIP *,
     u_long addr);
 



More information about the nginx-devel mailing list