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

@@ -430,11 +430,7 @@ var _ = Describe("Public Header", func() {
})
Context("in big endian", func() {
version := protocol.Version39
BeforeEach(func() {
Expect(utils.GetByteOrder(version)).To(Equal(utils.BigEndian))
})
version := versionBigEndian
It("writes a header with a 1-byte packet number", func() {
b := &bytes.Buffer{}