From f6f7c635d5f45b4713a2f48489ec65ca7baf1c42 Mon Sep 17 00:00:00 2001 From: wokron Date: Mon, 27 Jul 2026 20:40:45 +0800 Subject: [PATCH] remove unused send fixed prep func --- include/condy/detail/async_operations.hpp | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/include/condy/detail/async_operations.hpp b/include/condy/detail/async_operations.hpp index 1236bda3..c2737c4e 100644 --- a/include/condy/detail/async_operations.hpp +++ b/include/condy/detail/async_operations.hpp @@ -159,22 +159,6 @@ inline void prep_sendto(io_uring_sqe *sqe, int sockfd, const void *buf, io_uring_prep_send_set_addr(sqe, addr, addrlen); } -inline void prep_send_fixed(io_uring_sqe *sqe, int sockfd, const void *buf, - size_t len, int flags, int buf_index) noexcept { - io_uring_prep_send(sqe, sockfd, buf, len, flags); - sqe->ioprio |= IORING_RECVSEND_FIXED_BUF; - sqe->buf_index = buf_index; -} - -inline void prep_sendto_fixed(io_uring_sqe *sqe, int sockfd, const void *buf, - size_t len, int flags, - const struct sockaddr *addr, socklen_t addrlen, - int buf_index) noexcept { - prep_sendto(sqe, sockfd, buf, len, flags, addr, addrlen); - sqe->ioprio |= IORING_RECVSEND_FIXED_BUF; - sqe->buf_index = buf_index; -} - inline void prep_sendto_zc(io_uring_sqe *sqe, int sockfd, const void *buf, size_t len, int flags, const struct sockaddr *addr, socklen_t addrlen, unsigned zc_flags) noexcept {