Commit 3144bcbe authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

Remove unused iframe->error_code

parent eb2856f3
...@@ -174,7 +174,6 @@ static void nghttp2_inbound_frame_reset(nghttp2_session *session) ...@@ -174,7 +174,6 @@ static void nghttp2_inbound_frame_reset(nghttp2_session *session)
iframe->niv = 0; iframe->niv = 0;
iframe->payloadleft = 0; iframe->payloadleft = 0;
iframe->padlen = 0; iframe->padlen = 0;
iframe->error_code = 0;
iframe->buflen = 0; iframe->buflen = 0;
} }
...@@ -3823,7 +3822,6 @@ ssize_t nghttp2_session_mem_recv(nghttp2_session *session, ...@@ -3823,7 +3822,6 @@ ssize_t nghttp2_session_mem_recv(nghttp2_session *session,
} }
if((iframe->frame.hd.flags & NGHTTP2_FLAG_END_HEADERS) == 0) { if((iframe->frame.hd.flags & NGHTTP2_FLAG_END_HEADERS) == 0) {
inbound_frame_reset_left(iframe, NGHTTP2_FRAME_HEAD_LENGTH); inbound_frame_reset_left(iframe, NGHTTP2_FRAME_HEAD_LENGTH);
iframe->error_code = 0;
iframe->padlen = 0; iframe->padlen = 0;
if(iframe->state == NGHTTP2_IB_READ_HEADER_BLOCK) { if(iframe->state == NGHTTP2_IB_READ_HEADER_BLOCK) {
iframe->state = NGHTTP2_IB_EXPECT_CONTINUATION; iframe->state = NGHTTP2_IB_EXPECT_CONTINUATION;
...@@ -4059,9 +4057,6 @@ ssize_t nghttp2_session_mem_recv(nghttp2_session *session, ...@@ -4059,9 +4057,6 @@ ssize_t nghttp2_session_mem_recv(nghttp2_session *session,
data_readlen, data_readlen,
session->user_data); session->user_data);
if(rv == NGHTTP2_ERR_PAUSE) { if(rv == NGHTTP2_ERR_PAUSE) {
/* Set type to NGHTTP2_DATA, so that we can see what was
paused in nghttp2_session_continue() */
session->iframe.error_code = NGHTTP2_ERR_PAUSE;
return in - first; return in - first;
} }
if(nghttp2_is_fatal(rv)) { if(nghttp2_is_fatal(rv)) {
......
...@@ -107,8 +107,6 @@ typedef struct { ...@@ -107,8 +107,6 @@ typedef struct {
/* padding length for the current frame */ /* padding length for the current frame */
size_t padlen; size_t padlen;
nghttp2_inbound_state state; nghttp2_inbound_state state;
/* TODO, remove this. Error code */
int error_code;
uint8_t buf[8]; uint8_t buf[8];
/* How many bytes have been written to |buf| */ /* How many bytes have been written to |buf| */
uint8_t buflen; uint8_t buflen;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment