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