You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by ma...@apache.org on 2017/11/30 07:27:00 UTC

[trafficserver] 02/02: Remove an unused type QUICMaximumData

This is an automated email from the ASF dual-hosted git repository.

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

commit 99bf22ad4d7fe09c7966005956f1894b91646133
Author: Masakazu Kitajo <ma...@apache.org>
AuthorDate: Thu Nov 30 16:26:03 2017 +0900

    Remove an unused type QUICMaximumData
---
 iocore/net/quic/QUICTypes.h | 54 ---------------------------------------------
 1 file changed, 54 deletions(-)

diff --git a/iocore/net/quic/QUICTypes.h b/iocore/net/quic/QUICTypes.h
index a5bd4d1..3f762a4 100644
--- a/iocore/net/quic/QUICTypes.h
+++ b/iocore/net/quic/QUICTypes.h
@@ -242,60 +242,6 @@ private:
 
 enum class QUICStreamType { SERVER, CLIENT, HANDSHAKE };
 
-class QUICMaximumData
-{
-public:
-  QUICMaximumData(uint64_t d) : _data(d) {}
-  bool
-  operator>(uint64_t r) const
-  {
-    return this->_data > (r / 1024);
-  }
-
-  bool
-  operator<(uint64_t r) const
-  {
-    return this->_data < (r / 1024);
-  }
-
-  bool
-  operator>=(uint64_t r) const
-  {
-    return this->_data >= (r / 1024);
-  }
-
-  bool
-  operator<=(uint64_t r) const
-  {
-    return this->_data <= (r / 1024);
-  }
-
-  bool
-  operator==(uint64_t r) const
-  {
-    return this->_data == (r / 1024);
-  }
-
-  QUICMaximumData &
-  operator=(uint64_t d)
-  {
-    this->_data = d;
-    return *this;
-  }
-
-  QUICMaximumData &
-  operator+=(uint64_t d)
-  {
-    this->_data += d;
-    return *this;
-  }
-
-  operator uint64_t() const { return _data; }
-
-private:
-  uint64_t _data = 0; // in units of 1024 octets
-};
-
 class QUICTypeUtil
 {
 public:

-- 
To stop receiving notification emails like this one, please contact
"commits@trafficserver.apache.org" <co...@trafficserver.apache.org>.