From 8c5415db6a9cfd880accfcb5e3100f142e95a7f4 Mon Sep 17 00:00:00 2001 From: Masakazu Kitajo Date: Fri, 26 Mar 2021 17:16:43 +0900 Subject: [PATCH] Remove unused variables ssn_start_time and ssn_last_txn_time are unused. --- proxy/ProxySession.h | 3 --- proxy/http/Http1ClientSession.cc | 12 +++++------- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/proxy/ProxySession.h b/proxy/ProxySession.h index 350236cedfc..17c1f69a03b 100644 --- a/proxy/ProxySession.h +++ b/proxy/ProxySession.h @@ -163,9 +163,6 @@ class ProxySession : public VConnection, public PluginUserArgs HttpSessionAccept::Options const *accept_options; ///< connection info // L7R TODO: set in constructor - ink_hrtime ssn_start_time = 0; - ink_hrtime ssn_last_txn_time = 0; - protected: // Hook dispatching state HttpHookState hook_state; diff --git a/proxy/http/Http1ClientSession.cc b/proxy/http/Http1ClientSession.cc index 34602d0dc80..9670dee2d4a 100644 --- a/proxy/http/Http1ClientSession.cc +++ b/proxy/http/Http1ClientSession.cc @@ -128,12 +128,11 @@ Http1ClientSession::new_connection(NetVConnection *new_vc, MIOBuffer *iobuf, IOB { ink_assert(new_vc != nullptr); ink_assert(_vc == nullptr); - _vc = new_vc; - magic = HTTP_CS_MAGIC_ALIVE; - mutex = new_vc->mutex; - trans.mutex = mutex; // Share this mutex with the transaction - ssn_start_time = Thread::get_hrtime(); - in_destroy = false; + _vc = new_vc; + magic = HTTP_CS_MAGIC_ALIVE; + mutex = new_vc->mutex; + trans.mutex = mutex; // Share this mutex with the transaction + in_destroy = false; SSLNetVConnection *ssl_vc = dynamic_cast(new_vc); if (ssl_vc != nullptr) { @@ -397,7 +396,6 @@ Http1ClientSession::release(ProxyTransaction *trans) set_inactivity_timeout(HRTIME_SECONDS(ka_in)); this->clear_session_active(); - this->ssn_last_txn_time = Thread::get_hrtime(); // Timeout events should be delivered to the session this->do_io_write(this, 0, nullptr);