diff options
author | Valentin Bartenev <vbart@nginx.com> | 2018-10-23 18:55:16 +0300 |
---|---|---|
committer | Valentin Bartenev <vbart@nginx.com> | 2018-10-23 18:55:16 +0300 |
commit | 6cc4080af23d0d8c39ba43f6c90de4f76d64e0f1 (patch) | |
tree | e4013abfdedacc3de84dfaa6f36b783c7686c24c /src | |
parent | d4a99aad84e1ab432733650e9753814311e04a01 (diff) | |
download | unit-6cc4080af23d0d8c39ba43f6c90de4f76d64e0f1.tar.gz unit-6cc4080af23d0d8c39ba43f6c90de4f76d64e0f1.tar.bz2 |
Removed unused "--upstream" command line option.
Diffstat (limited to '')
-rw-r--r-- | src/nxt_runtime.c | 14 | ||||
-rw-r--r-- | src/nxt_runtime.h | 1 |
2 files changed, 0 insertions, 15 deletions
diff --git a/src/nxt_runtime.c b/src/nxt_runtime.c index 8f20e0a0..547c7494 100644 --- a/src/nxt_runtime.c +++ b/src/nxt_runtime.c @@ -872,20 +872,6 @@ nxt_runtime_conf_read_cmd(nxt_task_t *task, nxt_runtime_t *rt) continue; } - if (nxt_strcmp(p, "--upstream") == 0) { - if (*argv == NULL) { - nxt_alert(task, "no argument for option \"--upstream\""); - return NXT_ERROR; - } - - p = *argv++; - - rt->upstream.length = nxt_strlen(p); - rt->upstream.start = (u_char *) p; - - continue; - } - if (nxt_strcmp(p, "--user") == 0) { if (*argv == NULL) { write(STDERR_FILENO, no_user, nxt_length(no_user)); diff --git a/src/nxt_runtime.h b/src/nxt_runtime.h index e4c9e2a1..496ae478 100644 --- a/src/nxt_runtime.h +++ b/src/nxt_runtime.h @@ -74,7 +74,6 @@ struct nxt_runtime_s { nxt_sockaddr_t *controller_listen; nxt_listen_socket_t *controller_socket; - nxt_str_t upstream; }; |