Remove unnecessary assignment to item->cycle

This commit is contained in:
Tatsuhiro Tsujikawa 2015-04-26 22:32:54 +09:00
parent c8f67788e0
commit 42b2430fe1
1 changed files with 0 additions and 4 deletions

View File

@ -707,8 +707,6 @@ int nghttp2_session_add_item(nghttp2_session *session,
if (stream && (stream->state == NGHTTP2_STREAM_RESERVED || if (stream && (stream->state == NGHTTP2_STREAM_RESERVED ||
item->aux_data.headers.attach_stream)) { item->aux_data.headers.attach_stream)) {
item->cycle = session->last_cycle;
rv = nghttp2_stream_attach_item(stream, item, session); rv = nghttp2_stream_attach_item(stream, item, session);
if (rv != 0) { if (rv != 0) {
@ -747,8 +745,6 @@ int nghttp2_session_add_item(nghttp2_session *session,
return NGHTTP2_ERR_DATA_EXIST; return NGHTTP2_ERR_DATA_EXIST;
} }
item->cycle = session->last_cycle;
rv = nghttp2_stream_attach_item(stream, item, session); rv = nghttp2_stream_attach_item(stream, item, session);
if (rv != 0) { if (rv != 0) {