]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: quic: Remove quic_path_room().
authorFrédéric Lécaille <flecaille@haproxy.com>
Thu, 3 Aug 2023 09:01:59 +0000 (11:01 +0200)
committerFrédéric Lécaille <flecaille@haproxy.com>
Mon, 7 Aug 2023 16:57:45 +0000 (18:57 +0200)
This function is definitively no more needed/used.

include/haproxy/quic_conn.h

index d90e7013f1daf8ff394ad79586e7357e00d3f21a..0408090622c4323aa9c8fdca80c17cd83f8a3f4f 100644 (file)
@@ -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 <room> available on <path> 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 <room> available on <path> 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.