From e6db50840dc21c8cbf11ed093529e67cb58ef3fb Mon Sep 17 00:00:00 2001 From: Masaori Koshiba Date: Wed, 14 Aug 2019 10:06:40 +0900 Subject: [PATCH] Cleanup: Remove unused function & old comments --- proxy/http2/Http2ClientSession.cc | 6 ------ proxy/http2/Http2ClientSession.h | 6 ------ 2 files changed, 12 deletions(-) diff --git a/proxy/http2/Http2ClientSession.cc b/proxy/http2/Http2ClientSession.cc index 425582a2ec8..c55cc5cd8de 100644 --- a/proxy/http2/Http2ClientSession.cc +++ b/proxy/http2/Http2ClientSession.cc @@ -175,12 +175,6 @@ Http2ClientSession::start() read_vio = this->do_io_read(this, INT64_MAX, this->read_buffer); write_vio = this->do_io_write(this, INT64_MAX, this->sm_writer); - // 3.5 HTTP/2 Connection Preface. Upon establishment of a TCP connection and - // determination that HTTP/2 will be used by both peers, each endpoint MUST - // send a connection preface as a final confirmation ... - // this->write_buffer->write(HTTP2_CONNECTION_PREFACE, - // HTTP2_CONNECTION_PREFACE_LEN); - this->connection_state.init(); send_connection_event(&this->connection_state, HTTP2_SESSION_EVENT_INIT, this); this->handleEvent(VC_EVENT_READ_READY, read_vio); diff --git a/proxy/http2/Http2ClientSession.h b/proxy/http2/Http2ClientSession.h index b7b4ce5ce57..433be890b73 100644 --- a/proxy/http2/Http2ClientSession.h +++ b/proxy/http2/Http2ClientSession.h @@ -303,12 +303,6 @@ class Http2ClientSession : public ProxySession } } - int64_t - write_buffer_size() - { - return write_buffer->max_read_avail(); - } - // Record history from Http2ConnectionState void remember(const SourceLocation &location, int event, int reentrant = NO_REENTRANT);