From a36d8ad9b9a6a327e24211bd1dbe9ec28b917870 Mon Sep 17 00:00:00 2001 From: Nonoo Date: Wed, 21 Oct 2020 15:43:19 +0200 Subject: [PATCH] Comment out unused func --- pkt7.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkt7.go b/pkt7.go index 1793560..cb87dd8 100644 --- a/pkt7.go +++ b/pkt7.go @@ -27,9 +27,9 @@ func (p *pkt7Type) isPkt7(r []byte) bool { return len(r) == 21 && bytes.Equal(r[1:6], []byte{0x00, 0x00, 0x00, 0x07, 0x00}) // Note that the first byte can be 0x15 or 0x00, so we ignore that. } -func (p *pkt7Type) tryReceive(timeout time.Duration, s *streamCommon) []byte { - return s.tryReceivePacket(timeout, 21, 1, []byte{0x00, 0x00, 0x00, 0x07, 0x00}) -} +// func (p *pkt7Type) tryReceive(timeout time.Duration, s *streamCommon) []byte { +// return s.tryReceivePacket(timeout, 21, 1, []byte{0x00, 0x00, 0x00, 0x07, 0x00}) +// } func (p *pkt7Type) handle(s *streamCommon, r []byte) { gotSeq := binary.LittleEndian.Uint16(r[6:8])