remove dead code
This commit is contained in:
1 parent
56a169b50f
commit
aaba681db1
1 file changed
-5
@@ -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
|
||||
|
||||
Reference in new issue
Block a user