remove unused unknownPacketHandler interface (#4093)

This commit is contained in:
Marten Seemann 2023-09-17 19:20:13 +07:00 committed by GitHub
parent 22fb59ee6f
commit 9010cfd2bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 3 additions and 70 deletions

View file

@ -4,7 +4,6 @@ import (
"crypto/hmac"
"crypto/rand"
"crypto/sha256"
"errors"
"hash"
"io"
"net"
@ -45,13 +44,6 @@ type closePacket struct {
info packetInfo
}
type unknownPacketHandler interface {
handlePacket(receivedPacket)
setCloseError(error)
}
var errListenerAlreadySet = errors.New("listener already set")
type packetHandlerMap struct {
mutex sync.Mutex
handlers map[protocol.ConnectionID]packetHandler