From: Frédéric Lécaille Date: Fri, 8 Sep 2023 08:17:25 +0000 (+0200) Subject: CLEANUP: quic: Remove useless free_quic_tx_pkts() function. X-Git-Tag: v2.9-dev5~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e3e218b98e59fe10339a8894e87b879694d78ed6;p=thirdparty%2Fhaproxy.git CLEANUP: quic: Remove useless free_quic_tx_pkts() function. This function define but no more used since this commit: BUG/MAJOR: quic: Really ignore malformed ACK frames. --- diff --git a/include/haproxy/quic_tx.h b/include/haproxy/quic_tx.h index b3702cc88b..f22ebe03fe 100644 --- a/include/haproxy/quic_tx.h +++ b/include/haproxy/quic_tx.h @@ -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, diff --git a/src/quic_tx.c b/src/quic_tx.c index e63b44a248..cc1147b93e 100644 --- a/src/quic_tx.c +++ b/src/quic_tx.c @@ -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 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 list into list * for QUIC connection. * This is a best effort function which never fails even if no memory could be