From 3b970ed9345ee2fe27f15b43ff827630d38cc124 Mon Sep 17 00:00:00 2001 From: OutOfFocus4 Date: Tue, 13 Sep 2022 10:36:46 -0400 Subject: Removed dead code. Signed-off-by: Alejandro Colomar --- src/nxt_application.h | 1 - src/nxt_main_process.c | 12 ------------ src/python/nxt_python.c | 4 +--- 3 files changed, 1 insertion(+), 16 deletions(-) (limited to 'src') diff --git a/src/nxt_application.h b/src/nxt_application.h index 30a1a12f..239f357b 100644 --- a/src/nxt_application.h +++ b/src/nxt_application.h @@ -49,7 +49,6 @@ typedef struct { typedef struct { char *home; nxt_conf_value_t *path; - nxt_str_t module; char *callable; nxt_str_t protocol; uint32_t threads; diff --git a/src/nxt_main_process.c b/src/nxt_main_process.c index 39a8e112..f21482d5 100644 --- a/src/nxt_main_process.c +++ b/src/nxt_main_process.c @@ -190,18 +190,6 @@ static nxt_conf_map_t nxt_python_app_conf[] = { offsetof(nxt_common_app_conf_t, u.python.path), }, - { - nxt_string("module"), - NXT_CONF_MAP_STR, - offsetof(nxt_common_app_conf_t, u.python.module), - }, - - { - nxt_string("callable"), - NXT_CONF_MAP_CSTRZ, - offsetof(nxt_common_app_conf_t, u.python.callable), - }, - { nxt_string("protocol"), NXT_CONF_MAP_STR, diff --git a/src/python/nxt_python.c b/src/python/nxt_python.c index 188c4920..37204051 100644 --- a/src/python/nxt_python.c +++ b/src/python/nxt_python.c @@ -70,7 +70,7 @@ nxt_python_start(nxt_task_t *task, nxt_process_data_t *data) int rc; size_t len, size; uint32_t next; - PyObject *obj, *module; + PyObject *obj; nxt_str_t proto, probe_proto, name; nxt_int_t ret, n, i; nxt_unit_ctx_t *unit_ctx; @@ -154,7 +154,6 @@ nxt_python_start(nxt_task_t *task, nxt_process_data_t *data) } #endif - module = NULL; obj = NULL; python_init.ctx_data = NULL; @@ -307,7 +306,6 @@ fail: } Py_XDECREF(obj); - Py_XDECREF(module); nxt_python_atexit(); -- cgit