diff --git a/errors.go b/errors.go index fda3c9247cc..602089c935a 100644 --- a/errors.go +++ b/errors.go @@ -67,9 +67,4 @@ type DatagramTooLargeError struct { PeerMaxDatagramFrameSize int64 } -func (e *DatagramTooLargeError) Is(target error) bool { - _, ok := target.(*DatagramTooLargeError) - return ok -} - func (e *DatagramTooLargeError) Error() string { return "DATAGRAM frame too large" }