trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zw...@apache.org
Subject [trafficserver] branch 8.0.x updated: Remove unused code
Date Mon, 04 Feb 2019 23:51:49 GMT
This is an automated email from the ASF dual-hosted git repository.

zwoop pushed a commit to branch 8.0.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/8.0.x by this push:
     new a171a43  Remove unused code
a171a43 is described below

commit a171a435ecd973f2cf052c1c459b2f2e9052c126
Author: Masakazu Kitajo <maskit@apache.org>
AuthorDate: Sun Nov 11 16:15:23 2018 +0900

    Remove unused code
    
    (cherry picked from commit c042358af14010f3bdcb4d1762c3558422283979)
---
 proxy/http2/Http2Stream.cc | 18 ------------------
 proxy/http2/Http2Stream.h  |  9 ---------
 2 files changed, 27 deletions(-)

diff --git a/proxy/http2/Http2Stream.cc b/proxy/http2/Http2Stream.cc
index 6f5b149..429b55f 100644
--- a/proxy/http2/Http2Stream.cc
+++ b/proxy/http2/Http2Stream.cc
@@ -750,24 +750,6 @@ Http2Stream::destroy()
   THREAD_FREE(this, http2StreamAllocator, this_ethread());
 }
 
-bool
-check_stream_thread(Continuation *cont)
-{
-  Http2Stream *stream = dynamic_cast<Http2Stream *>(cont);
-  if (stream) {
-    return stream->get_thread() == this_ethread();
-  } else {
-    return true;
-  }
-}
-
-bool
-check_continuation(Continuation *cont)
-{
-  Http2Stream *stream = dynamic_cast<Http2Stream *>(cont);
-  return stream == nullptr;
-}
-
 void
 Http2Stream::response_initialize_data_handling(bool &is_done)
 {
diff --git a/proxy/http2/Http2Stream.h b/proxy/http2/Http2Stream.h
index a6dce42..4f70a3d 100644
--- a/proxy/http2/Http2Stream.h
+++ b/proxy/http2/Http2Stream.h
@@ -109,12 +109,6 @@ public:
   bool change_state(uint8_t type, uint8_t flags);
 
   void
-  set_id(Http2StreamId sid)
-  {
-    _id = sid;
-  }
-
-  void
   update_initial_rwnd(Http2WindowSize new_size)
   {
     client_rwnd = new_size;
@@ -306,6 +300,3 @@ private:
 };
 
 extern ClassAllocator<Http2Stream> http2StreamAllocator;
-
-extern bool check_continuation(Continuation *cont);
-extern bool check_stream_thread(Continuation *cont);


Mime
View raw message