From 1f40b6c9fe0051865828b8ada4f6845b6f2ad8e8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20L=C3=A9caille?= Date: Thu, 3 Aug 2023 11:01:59 +0200 Subject: [PATCH] CLEANUP: quic: Remove quic_path_room(). This function is definitively no more needed/used. --- include/haproxy/quic_conn.h | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/include/haproxy/quic_conn.h b/include/haproxy/quic_conn.h index d90e7013f..040809062 100644 --- a/include/haproxy/quic_conn.h +++ b/include/haproxy/quic_conn.h @@ -455,17 +455,6 @@ static inline void quic_path_init(struct quic_path *path, int ipv4, quic_cc_init(&path->cc, algo, qc); } -/* Return the remaining available on QUIC path. In fact this this - *the remaining number of bytes available in the congestion controller window. - */ -static inline size_t quic_path_room(struct quic_path *path) -{ - if (path->in_flight > path->cwnd) - return 0; - - return path->cwnd - path->in_flight; -} - /* Return the remaining available on QUIC path for prepared data * (before being sent). Almost the same that for the QUIC path room, except that * here this is the data which have been prepared which are taken into an account. -- 2.47.3