]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: quic: Remove useless free_quic_tx_pkts() function.
authorFrédéric Lécaille <flecaille@haproxy.com>
Fri, 8 Sep 2023 08:17:25 +0000 (10:17 +0200)
committerFrédéric Lécaille <flecaille@haproxy.com>
Fri, 8 Sep 2023 08:17:25 +0000 (10:17 +0200)
This function define but no more used since this commit:
    BUG/MAJOR: quic: Really ignore malformed ACK frames.

include/haproxy/quic_tx.h
src/quic_tx.c

index b3702cc88b878d5b5d5ac4def4d0ec232fb60e84..f22ebe03fe3e508f7506bff5f8efc2631c701dad 100644 (file)
@@ -40,7 +40,6 @@ int quic_build_post_handshake_frames(struct quic_conn *qc);
 int qc_send_app_pkts(struct quic_conn *qc, struct list *frms);
 int qc_dgrams_retransmit(struct quic_conn *qc);
 int qc_notify_send(struct quic_conn *qc);
-void free_quic_tx_pkts(struct quic_conn *qc, struct list *pkts);
 void qc_prep_hdshk_fast_retrans(struct quic_conn *qc,
                                 struct list *ifrms, struct list *hfrms);
 int quic_generate_retry_token_aad(unsigned char *aad,
index e63b44a248183432ea00211e8308218ddf977f6e..cc1147b93e9175c263aa9ba0a8195fe84650d58a 100644 (file)
@@ -79,22 +79,6 @@ static inline void free_quic_tx_packet(struct quic_conn *qc,
        TRACE_LEAVE(QUIC_EV_CONN_TXPKT, qc);
 }
 
-/* Free the TX packets of <pkts> list */
-void free_quic_tx_pkts(struct quic_conn *qc, struct list *pkts)
-{
-       struct quic_tx_packet *pkt, *tmp;
-
-       TRACE_ENTER(QUIC_EV_CONN_TXPKT, qc);
-
-       list_for_each_entry_safe(pkt, tmp, pkts, list) {
-               LIST_DELETE(&pkt->list);
-               eb64_delete(&pkt->pn_node);
-               free_quic_tx_packet(qc, pkt);
-       }
-
-       TRACE_LEAVE(QUIC_EV_CONN_TXPKT, qc);
-}
-
 /* Duplicate all frames from <pkt_frm_list> list into <out_frm_list> list
  * for <qc> QUIC connection.
  * This is a best effort function which never fails even if no memory could be