From 408d226aa199fd9200e30ef5d0615af2168063a6 Mon Sep 17 00:00:00 2001 From: Amaury Denoyelle Date: Tue, 26 Apr 2022 17:36:56 +0200 Subject: [PATCH] MINOR: mux-quic: remove unused bogus qcc_get_stream() qcc_get_stream() was used when qcs and qc_stream_desc shared the same node-tree. This is not the case anymore since e4301da5ed9e77844c653ea4caf233546febe591 MINOR: quic-stream: use distinct tree nodes for quic stream and qcs Now this function is broken as the qcc tree only contains qcs. Thankfully it is unused so it can be removed without impact. --- include/haproxy/mux_quic.h | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/include/haproxy/mux_quic.h b/include/haproxy/mux_quic.h index cd0a31825..233a210a6 100644 --- a/include/haproxy/mux_quic.h +++ b/include/haproxy/mux_quic.h @@ -89,22 +89,6 @@ static inline int qcc_install_app_ops(struct qcc *qcc, return 0; } -/* Retrieve a qc_stream_desc from the MUX with . This function is - * useful for the transport layer. - * - * Returns the stream instance or NULL if not found. - */ -static inline struct qc_stream_desc *qcc_get_stream(struct qcc *qcc, uint64_t id) -{ - struct eb64_node *node; - - node = eb64_lookup(&qcc->streams_by_id, id); - if (!node) - return NULL; - - return eb64_entry(node, struct qc_stream_desc, by_id); -} - static inline struct conn_stream *qc_attach_cs(struct qcs *qcs, struct buffer *buf) { struct conn_stream *cs;