From 6e1470c9d30c6e129c0ab34e865dbaafb93fd9de Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Wed, 12 Nov 2014 22:47:53 +0900 Subject: [PATCH] Remove duplicated code --- lib/nghttp2_session.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/lib/nghttp2_session.c b/lib/nghttp2_session.c index b3c8c55b..f239a69c 100644 --- a/lib/nghttp2_session.c +++ b/lib/nghttp2_session.c @@ -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,