remove dead code

This commit is contained in:
Matthias Radestock committed 2015-07-11 01:54:37 +01:00
1 parent 56a169b50f
commit aaba681db1
1 file changed
-5
-5
View File
@@ -31,7 +31,6 @@ func FormSessionKey(remotePublicKey, localPrivateKey *[32]byte, secretKey []byte
type Encryptor interface { type Encryptor interface {
FrameOverhead() int FrameOverhead() int
PacketOverhead() int PacketOverhead() int
IsEmpty() bool
Bytes() ([]byte, error) Bytes() ([]byte, error)
AppendFrame(src []byte, dst []byte, frame []byte) AppendFrame(src []byte, dst []byte, frame []byte)
TotalLen() int TotalLen() int
@@ -72,10 +71,6 @@ func (ne *NonEncryptor) FrameOverhead() int {
return NameSize + NameSize + 2 return NameSize + NameSize + 2
} }
func (ne *NonEncryptor) IsEmpty() bool {
return ne.buffered == ne.prefixLen
}
func (ne *NonEncryptor) Bytes() ([]byte, error) { func (ne *NonEncryptor) Bytes() ([]byte, error) {
buf := ne.buf[:ne.buffered] buf := ne.buf[:ne.buffered]
ne.buffered = ne.prefixLen ne.buffered = ne.prefixLen