remove unused utils.GetByteOrder

This function was needed when we supported both Q039 (using big endian
encoding) and ealier versions (using little endian encoding).
This commit is contained in:
Marten Seemann
2017-12-08 11:33:40 +07:00
parent 62a664f5f4
commit f8cbb0ae03
13 changed files with 82 additions and 110 deletions

View File

@@ -3,8 +3,6 @@ package utils
import (
"bytes"
"io"
"github.com/lucas-clemente/quic-go/internal/protocol"
)
// A ByteOrder specifies how to convert byte sequences into 16-, 32-, or 64-bit unsigned integers.
@@ -25,9 +23,3 @@ type ByteOrder interface {
ReadUfloat16(io.ByteReader) (uint64, error)
WriteUfloat16(*bytes.Buffer, uint64)
}
// GetByteOrder gets the ByteOrder to represent values on the wire
// from QUIC 39, values are encoded in big endian, before that in little endian
func GetByteOrder(v protocol.VersionNumber) ByteOrder {
return BigEndian
}