Permalink
Browse files

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.
  • Loading branch information...
1 parent a28bc88 commit 59a2c639316bd23f738c78147dd79ad4b61b3cf1 @bnoordhuis bnoordhuis committed Nov 15, 2012
Showing with 0 additions and 4 deletions.
  1. +0 −4 test/benchmark-multi-accept.c
@@ -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_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
ASSERT(0);

0 comments on commit 59a2c63

Please sign in to comment.