Commit 6e1470c9 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

Remove duplicated code

parent 9416bf90
......@@ -856,17 +856,6 @@ nghttp2_stream* nghttp2_session_open_stream(nghttp2_session *session,
}
}
if(pri_spec->stream_id != 0) {
dep_stream = nghttp2_session_get_stream_raw(session, pri_spec->stream_id);
/* If dep_stream is not part of dependency tree, stream will get
default priority. */
if(!dep_stream || !nghttp2_stream_in_dep_tree(dep_stream)) {
nghttp2_priority_spec_default_init(&pri_spec_default);
pri_spec = &pri_spec_default;
}
}
nghttp2_stream_init(stream, stream_id, flags, initial_state,
pri_spec->weight, &session->roots,
session->remote_settings.initial_window_size,
......
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