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


The following commit(s) were added to refs/heads/quic-latest by this push:
     new 30b4edd  Remove unused variables
30b4edd is described below

commit 30b4edd4c43a2dfdd47455b5f0ea8dd8e1f4c2a0
Author: Masakazu Kitajo <[email protected]>
AuthorDate: Fri Jun 22 10:43:52 2018 +0900

    Remove unused variables
---
 iocore/net/quic/QUICPacket.cc | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/iocore/net/quic/QUICPacket.cc b/iocore/net/quic/QUICPacket.cc
index 7a4b076..7010acd 100644
--- a/iocore/net/quic/QUICPacket.cc
+++ b/iocore/net/quic/QUICPacket.cc
@@ -760,7 +760,6 @@ QUICPacket::protect_packet_number(uint8_t *packet, size_t 
packet_len, const QUIC
   size_t pn_offset             = 0;
   uint8_t pn_len               = 4;
   size_t sample_offset         = 0;
-  uint8_t sample_len           = 0;
   constexpr int aead_expansion = 16; // Currently, AEAD expansion (which is 
probably AEAD tag) length is always 16
   QUICKeyPhase phase;
 
@@ -781,7 +780,6 @@ QUICPacket::protect_packet_number(uint8_t *packet, size_t 
packet_len, const QUIC
     QUICPacketShortHeader::packet_number_offset(pn_offset, packet, packet_len, 
dcil);
   }
   sample_offset = std::min(pn_offset + 4, packet_len - aead_expansion);
-  sample_len    = 16; // On draft-12, the length is always 16 (See 5.6.1 and 
5.6.2)
 
   uint8_t protected_pn[4]  = {0};
   uint8_t protected_pn_len = 0;
@@ -799,7 +797,6 @@ QUICPacket::unprotect_packet_number(uint8_t *packet, size_t 
packet_len, const QU
   size_t pn_offset             = 0;
   uint8_t pn_len               = 4;
   size_t sample_offset         = 0;
-  uint8_t sample_len           = 0;
   constexpr int aead_expansion = 16; // Currently, AEAD expansion (which is 
probably AEAD tag) length is always 16
   QUICKeyPhase phase;
 
@@ -826,7 +823,6 @@ QUICPacket::unprotect_packet_number(uint8_t *packet, size_t 
packet_len, const QU
     QUICPacketShortHeader::packet_number_offset(pn_offset, packet, packet_len, 
QUICConfigParams::scid_len());
   }
   sample_offset = std::min(pn_offset + 4, packet_len - aead_expansion);
-  sample_len    = 16; // On draft-12, the length is always 16 (See 5.6.1 and 
5.6.2)
 
   uint8_t unprotected_pn[4]  = {0};
   uint8_t unprotected_pn_len = 0;

Reply via email to