Removed dead code.

Signed-off-by: Alejandro Colomar <alx@nginx.com>
This commit is contained in:
OutOfFocus4
2022-09-13 10:36:46 -04:00
committed by Alejandro Colomar
parent 2ac4a7527d
commit 3b970ed934
3 changed files with 1 additions and 16 deletions

View File

@@ -49,7 +49,6 @@ typedef struct {
typedef struct { typedef struct {
char *home; char *home;
nxt_conf_value_t *path; nxt_conf_value_t *path;
nxt_str_t module;
char *callable; char *callable;
nxt_str_t protocol; nxt_str_t protocol;
uint32_t threads; uint32_t threads;

View File

@@ -190,18 +190,6 @@ static nxt_conf_map_t nxt_python_app_conf[] = {
offsetof(nxt_common_app_conf_t, u.python.path), 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_string("protocol"),
NXT_CONF_MAP_STR, NXT_CONF_MAP_STR,

View File

@@ -70,7 +70,7 @@ nxt_python_start(nxt_task_t *task, nxt_process_data_t *data)
int rc; int rc;
size_t len, size; size_t len, size;
uint32_t next; uint32_t next;
PyObject *obj, *module; PyObject *obj;
nxt_str_t proto, probe_proto, name; nxt_str_t proto, probe_proto, name;
nxt_int_t ret, n, i; nxt_int_t ret, n, i;
nxt_unit_ctx_t *unit_ctx; nxt_unit_ctx_t *unit_ctx;
@@ -154,7 +154,6 @@ nxt_python_start(nxt_task_t *task, nxt_process_data_t *data)
} }
#endif #endif
module = NULL;
obj = NULL; obj = NULL;
python_init.ctx_data = NULL; python_init.ctx_data = NULL;
@@ -307,7 +306,6 @@ fail:
} }
Py_XDECREF(obj); Py_XDECREF(obj);
Py_XDECREF(module);
nxt_python_atexit(); nxt_python_atexit();