struct quic_cstream carries a tx substructure with offset, sent_offset
and buf members, inherited from the qcs object it was derived from to
handle CRYPTO streams. Nothing ever reads them: the TX side of the
CRYPTO stream is handled by the tx crypto buffers of its encryption
level for the data, and by the stream descriptor attached to the
cstream. Only quic_cstream_new() sets the three members and no reader
exists anywhere in src/ or include/.
They were already unread when they were introduced (commit
7e3f7c47e
"MINOR: quic: New quic_cstream object implementation"), so let's remove
them along with their initialization.
uint64_t offset; /* absolute current base offset of ncbuf */
struct ncbmbuf ncbuf; /* receive buffer - can handle out-of-order offset frames */
} rx;
- struct {
- uint64_t offset; /* last offset of data ready to be sent */
- uint64_t sent_offset; /* last offset sent by transport layer */
- struct buffer buf; /* transmit buffer before sending via xprt */
- } tx;
-
struct qc_stream_desc *desc;
};
cs->rx.offset = 0;
cs->rx.ncbuf = NCBMBUF_NULL;
-
- cs->tx.offset = 0;
- cs->tx.sent_offset = 0;
- cs->tx.buf = BUF_NULL;
cs->desc = qc_stream_desc_new((uint64_t)-1, -1, cs, qc);
if (!cs->desc) {
TRACE_ERROR("crypto stream allocation failed", QUIC_EV_CONN_INIT, qc);