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 61f1631 Removed unused code 61f1631 is described below commit 61f1631d42ccdf748f404b55d8c68a518b11dcef Author: Masakazu Kitajo <mas...@apache.org> AuthorDate: Wed Feb 27 16:24:08 2019 +0900 Removed unused code --- iocore/net/P_QUICNetVConnection.h | 23 ----------------------- iocore/net/QUICNetVConnection.cc | 3 --- 2 files changed, 26 deletions(-) diff --git a/iocore/net/P_QUICNetVConnection.h b/iocore/net/P_QUICNetVConnection.h index bdece52..670aaff 100644 --- a/iocore/net/P_QUICNetVConnection.h +++ b/iocore/net/P_QUICNetVConnection.h @@ -62,32 +62,9 @@ #include "quic/QUICAddrVerifyState.h" #include "quic/QUICPacketProtectionKeyInfo.h" -// These are included here because older OpenQUIC libraries don't have them. -// Don't copy these defines, or use their values directly, they are merely -// here to avoid compiler errors. -#ifndef QUIC_TLSEXT_ERR_OK -#define QUIC_TLSEXT_ERR_OK 0 -#endif - -#ifndef QUIC_TLSEXT_ERR_NOACK -#define QUIC_TLSEXT_ERR_NOACK 3 -#endif - -#define QUIC_OP_HANDSHAKE 0x16 - // Size of connection ids for debug log : e.g. aaaaaaaa-bbbbbbbb\0 static constexpr size_t MAX_CIDS_SIZE = 8 + 1 + 8 + 1; -// class QUICNextProtocolSet; -// struct QUICCertLookup; - -typedef enum { - QUIC_HOOK_OP_DEFAULT, ///< Null / initialization value. Do normal processing. - QUIC_HOOK_OP_TUNNEL, ///< Switch to blind tunnel - QUIC_HOOK_OP_TERMINATE, ///< Termination connection / transaction. - QUIC_HOOK_OP_LAST = QUIC_HOOK_OP_TERMINATE ///< End marker value. -} QuicVConnOp; - ////////////////////////////////////////////////////////////////// // // class NetVConnection diff --git a/iocore/net/QUICNetVConnection.cc b/iocore/net/QUICNetVConnection.cc index f2d3dfb..549fd37 100644 --- a/iocore/net/QUICNetVConnection.cc +++ b/iocore/net/QUICNetVConnection.cc @@ -41,9 +41,6 @@ #include "QUICConfig.h" #include "QUICIntUtil.h" -#define STATE_FROM_VIO(_x) ((NetState *)(((char *)(_x)) - STATE_VIO_OFFSET)) -#define STATE_VIO_OFFSET ((uintptr_t) & ((NetState *)0)->vio) - using namespace std::literals; static constexpr std::string_view QUIC_DEBUG_TAG = "quic_net"sv;