From aaba681db1fcb5cb4e9ff924d95a333fced4cbfd Mon Sep 17 00:00:00 2001 From: Matthias Radestock Date: Sat, 11 Jul 2015 01:54:37 +0100 Subject: [PATCH] remove dead code --- router/crypto.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/router/crypto.go b/router/crypto.go index c77f6250..3f172caf 100644 --- a/router/crypto.go +++ b/router/crypto.go @@ -31,7 +31,6 @@ func FormSessionKey(remotePublicKey, localPrivateKey *[32]byte, secretKey []byte type Encryptor interface { FrameOverhead() int PacketOverhead() int - IsEmpty() bool Bytes() ([]byte, error) AppendFrame(src []byte, dst []byte, frame []byte) TotalLen() int @@ -72,10 +71,6 @@ func (ne *NonEncryptor) FrameOverhead() int { return NameSize + NameSize + 2 } -func (ne *NonEncryptor) IsEmpty() bool { - return ne.buffered == ne.prefixLen -} - func (ne *NonEncryptor) Bytes() ([]byte, error) { buf := ne.buf[:ne.buffered] ne.buffered = ne.prefixLen