summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndrew Clayton <a.clayton@nginx.com>2023-03-27 19:34:00 +0100
committerAndrew Clayton <a.clayton@nginx.com>2023-03-28 23:15:19 +0100
commit814c680c3920e6b086796a4ce1299d6d21754d38 (patch)
treec13278135407d0ba5c60446669e4c435e159e6d1
parent404ac4219137713bfbb5ff3dafff3cceb334b24a (diff)
downloadunit-814c680c3920e6b086796a4ce1299d6d21754d38.tar.gz
unit-814c680c3920e6b086796a4ce1299d6d21754d38.tar.bz2
Remove an unused structure.
This removes an unused structure from src/nxt_var.c that would have been changed to switch to using nxt_bool_t for boolean values in a subsequent commit. Reviewed-by: Alejandro Colomar <alx@nginx.com> Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
-rw-r--r--src/nxt_var.c16
-rw-r--r--src/nxt_var.h1
2 files changed, 0 insertions, 17 deletions
diff --git a/src/nxt_var.c b/src/nxt_var.c
index e113969f..f814f289 100644
--- a/src/nxt_var.c
+++ b/src/nxt_var.c
@@ -25,22 +25,6 @@ typedef struct {
} nxt_var_sub_t;
-struct nxt_var_query_s {
- nxt_mp_t *pool;
-
- nxt_var_cache_t cache;
-
- nxt_uint_t waiting;
- nxt_uint_t failed; /* 1 bit */
-
- void *ctx;
- void *data;
-
- nxt_work_handler_t ready;
- nxt_work_handler_t error;
-};
-
-
#define nxt_var_subs(var) ((nxt_var_sub_t *) (var)->data)
#define nxt_var_raw_start(var) \
diff --git a/src/nxt_var.h b/src/nxt_var.h
index ab25800d..545c8d8d 100644
--- a/src/nxt_var.h
+++ b/src/nxt_var.h
@@ -8,7 +8,6 @@
typedef struct nxt_var_s nxt_var_t;
-typedef struct nxt_var_query_s nxt_var_query_t;
typedef nxt_int_t (*nxt_var_handler_t)(nxt_task_t *task,