From 7d594a10a82bdc4813f48cda6b11b312a68cae19 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> Date: Sun, 7 Jun 2020 23:03:46 +0900 Subject: [PATCH] Remove redundant code --- lib/ngtcp2_conn.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/lib/ngtcp2_conn.c b/lib/ngtcp2_conn.c index 4bf2b301..ca7123d3 100644 --- a/lib/ngtcp2_conn.c +++ b/lib/ngtcp2_conn.c @@ -5174,16 +5174,6 @@ static int conn_recv_stream(ngtcp2_conn *conn, const ngtcp2_stream *fr, return ngtcp2_conn_close_stream_if_shut_rdwr(conn, strm, strm->app_error_code); } - - if (fr_end_offset == rx_offset) { - rv = conn_call_recv_stream_data(conn, strm, NGTCP2_STREAM_DATA_FLAG_FIN, - rx_offset, NULL, 0); - if (rv != 0) { - return rv; - } - return ngtcp2_conn_close_stream_if_shut_rdwr(conn, strm, - NGTCP2_NO_ERROR); - } } } else { if ((strm->flags & NGTCP2_STRM_FLAG_SHUT_RD) && -- GitLab