]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
http2: remove unused variable
authorsteini2000 <36340755+steini2000@users.noreply.github.com>
Mon, 14 May 2018 15:49:06 +0000 (17:49 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 14 May 2018 21:14:04 +0000 (23:14 +0200)
Closes #2570

lib/http2.c

index 92cb3b62c865053d5f85b92b093cab2f8a5cce9f..da001dfd09effdc598ff3680b980574178bedeb0 100644 (file)
@@ -559,7 +559,6 @@ static int on_frame_recv(nghttp2_session *session, const nghttp2_frame *frame,
   struct http_conn *httpc = &conn->proto.httpc;
   struct Curl_easy *data_s = NULL;
   struct HTTP *stream = NULL;
-  static int lastStream = -1;
   int rv;
   size_t left, ncopy;
   int32_t stream_id = frame->hd.stream_id;
@@ -590,9 +589,6 @@ static int on_frame_recv(nghttp2_session *session, const nghttp2_frame *frame,
     return 0;
   }
   data_s = nghttp2_session_get_stream_user_data(session, stream_id);
-  if(lastStream != stream_id) {
-    lastStream = stream_id;
-  }
   if(!data_s) {
     H2BUGF(infof(conn->data,
                  "No Curl_easy associated with stream: %x\n",