Remove unused iframe->error_code

This commit is contained in:
Tatsuhiro Tsujikawa 2014-02-11 16:34:42 +09:00
parent eb2856f3df
commit 3144bcbe20
2 changed files with 0 additions and 7 deletions

View File

@ -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,
} }
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,
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)) {

View File

@ -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;