diff --git a/packet.go b/packet.go index 74f374b..3763043 100644 --- a/packet.go +++ b/packet.go @@ -152,8 +152,6 @@ type packetHeader struct { ConnectionIDLengths byte DestinationConnectionID ConnectionId SourceConnectionID ConnectionId - TokenLength uint8 - Token []byte PayloadLength uint64 `tls:"varint"` // In order to decode a short header, the length of the connection @@ -190,22 +188,6 @@ func (p packetHeader) ConnectionIDLengths__length() uintptr { return 0 } -func (p packetHeader) TokenLength__length() uintptr { - if p.getHeaderType() != packetTypeInitial { - assert(len(p.Token) == 0) - return 0 - } - return 1 -} - -func (p packetHeader) Token__length() uintptr { - if p.getHeaderType() != packetTypeInitial { - assert(len(p.Token) == 0) - return 0 - } - return uintptr(p.TokenLength) -} - func (p packetHeader) DestinationConnectionID__length() uintptr { if !p.Type.isLongHeader() { return p.shortCidLength