summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2021-12-23 09:40:55 -0700
committerJens Axboe <axboe@kernel.dk>2021-12-23 09:40:55 -0700
commitd3ff18ac5c1b98d47d8a1856654a68b06f5be301 (patch)
tree53131210723d67cd7d16053b67b4d1d098360e44
parent1e2cab0d970ffb827336e84a824289b27024f71e (diff)
downloadliburing-d3ff18ac5c1b98d47d8a1856654a68b06f5be301.tar.gz
liburing-d3ff18ac5c1b98d47d8a1856654a68b06f5be301.tar.bz2
test: remove dead code
Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--test/poll-cancel-ton.c3
-rw-r--r--test/send_recv.c5
2 files changed, 0 insertions, 8 deletions
diff --git a/test/poll-cancel-ton.c b/test/poll-cancel-ton.c
index 05bf565..1c4234b 100644
--- a/test/poll-cancel-ton.c
+++ b/test/poll-cancel-ton.c
@@ -128,9 +128,6 @@ int main(int argc, char *argv[])
}
add_polls(&ring, pipe1[0], 30000);
-#if 0
- usleep(1000);
-#endif
del_polls(&ring, pipe1[0], 30000);
io_uring_queue_exit(&ring);
diff --git a/test/send_recv.c b/test/send_recv.c
index 1ee0234..ed45f83 100644
--- a/test/send_recv.c
+++ b/test/send_recv.c
@@ -22,11 +22,6 @@ static char str[] = "This is a test of send and recv over io_uring!";
#define PORT 10200
#define HOST "127.0.0.1"
-#if 0
-# define io_uring_prep_send io_uring_prep_write
-# define io_uring_prep_recv io_uring_prep_read
-#endif
-
static int recv_prep(struct io_uring *ring, struct iovec *iov, int *sock,
int registerfiles)
{