From: Amaury Denoyelle Date: Tue, 26 Apr 2022 15:36:56 +0000 (+0200) Subject: MINOR: mux-quic: remove unused bogus qcc_get_stream() X-Git-Tag: v2.6-dev8~46 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=408d226aa199fd9200e30ef5d0615af2168063a6;p=thirdparty%2Fhaproxy.git 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. --- diff --git a/include/haproxy/mux_quic.h b/include/haproxy/mux_quic.h index cd0a31825b..233a210a6d 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;