Removing unused tracking fields and functions.
The message tracking is unused since 1d84b9e4b459 commit. This fixes the issue found by Coverity (CID 376263).
This commit is contained in:
@@ -942,7 +942,6 @@ nxt_unit_ready(nxt_unit_ctx_t *ctx, int ready_fd, uint32_t stream, int queue_fd)
|
||||
msg.mmap = 0;
|
||||
msg.nf = 0;
|
||||
msg.mf = 0;
|
||||
msg.tracking = 0;
|
||||
|
||||
nxt_socket_msg_oob_init(&oob, fds);
|
||||
|
||||
@@ -2644,7 +2643,6 @@ nxt_unit_mmap_buf_send(nxt_unit_request_info_t *req,
|
||||
m.msg.mmap = hdr != NULL && m.mmap_msg.size > 0;
|
||||
m.msg.nf = 0;
|
||||
m.msg.mf = 0;
|
||||
m.msg.tracking = 0;
|
||||
|
||||
rc = NXT_UNIT_ERROR;
|
||||
|
||||
@@ -3296,7 +3294,6 @@ skip_response_send:
|
||||
msg.mmap = 0;
|
||||
msg.nf = 0;
|
||||
msg.mf = 0;
|
||||
msg.tracking = 0;
|
||||
|
||||
(void) nxt_unit_port_send(req->ctx, req->response_port,
|
||||
&msg, sizeof(msg), NULL);
|
||||
@@ -3619,7 +3616,6 @@ nxt_unit_send_oosm(nxt_unit_ctx_t *ctx, nxt_unit_port_t *port)
|
||||
msg.mmap = 0;
|
||||
msg.nf = 0;
|
||||
msg.mf = 0;
|
||||
msg.tracking = 0;
|
||||
|
||||
res = nxt_unit_port_send(ctx, lib->router_port, &msg, sizeof(msg), NULL);
|
||||
if (nxt_slow_path(res != sizeof(msg))) {
|
||||
@@ -3905,7 +3901,6 @@ nxt_unit_send_mmap(nxt_unit_ctx_t *ctx, nxt_unit_port_t *port, int fd)
|
||||
msg.mmap = 0;
|
||||
msg.nf = 0;
|
||||
msg.mf = 0;
|
||||
msg.tracking = 0;
|
||||
|
||||
nxt_socket_msg_oob_init(&oob, fds);
|
||||
|
||||
@@ -4390,7 +4385,6 @@ nxt_unit_send_shm_ack(nxt_unit_ctx_t *ctx, pid_t pid)
|
||||
msg.mmap = 0;
|
||||
msg.nf = 0;
|
||||
msg.mf = 0;
|
||||
msg.tracking = 0;
|
||||
|
||||
res = nxt_unit_port_send(ctx, lib->router_port, &msg, sizeof(msg), NULL);
|
||||
if (nxt_slow_path(res != sizeof(msg))) {
|
||||
@@ -5356,7 +5350,6 @@ nxt_unit_send_port(nxt_unit_ctx_t *ctx, nxt_unit_port_t *dst,
|
||||
m.msg.mmap = 0;
|
||||
m.msg.nf = 0;
|
||||
m.msg.mf = 0;
|
||||
m.msg.tracking = 0;
|
||||
|
||||
m.new_port.id = port->id.id;
|
||||
m.new_port.pid = port->id.pid;
|
||||
|
||||
Reference in New Issue
Block a user