trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mas...@apache.org
Subject [trafficserver] branch master updated: Remove unused variables (#7626)
Date Sat, 27 Mar 2021 05:46:59 GMT
This is an automated email from the ASF dual-hosted git repository.

maskit pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/master by this push:
     new 339045f  Remove unused variables (#7626)
339045f is described below

commit 339045f8988e098dd8c86d05200990f8749a663d
Author: Masakazu Kitajo <maskit@apache.org>
AuthorDate: Sat Mar 27 14:46:45 2021 +0900

    Remove unused variables (#7626)
    
    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 350236c..17c1f69 100644
--- a/proxy/ProxySession.h
+++ b/proxy/ProxySession.h
@@ -163,9 +163,6 @@ public:
 
   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 34602d0..9670dee 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<SSLNetVConnection *>(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);

Mime
View raw message