bench: remove dead and buggy code

Pipe accept benchmarks have never been implemented, remove the code path.

Said code path also contained a bug: it tried to bind to the same pipe that is
bound to a few lines down.
This commit is contained in:
Ben Noordhuis 2012-11-15 22:58:14 +01:00
parent a28bc88708
commit 59a2c63931

View File

@ -204,10 +204,6 @@ static void send_listen_handles(uv_handle_type type,
ASSERT(0 == uv_tcp_init(loop, (uv_tcp_t*) &ctx.server_handle)); ASSERT(0 == uv_tcp_init(loop, (uv_tcp_t*) &ctx.server_handle));
ASSERT(0 == uv_tcp_bind((uv_tcp_t*) &ctx.server_handle, listen_addr)); ASSERT(0 == uv_tcp_bind((uv_tcp_t*) &ctx.server_handle, listen_addr));
} }
else if (type == UV_NAMED_PIPE) {
ASSERT(0 == uv_pipe_init(loop, (uv_pipe_t*) &ctx.server_handle, 0));
ASSERT(0 == uv_pipe_bind((uv_pipe_t*) &ctx.server_handle, IPC_PIPE_NAME));
}
else else
ASSERT(0); ASSERT(0);