all: Unused errors

This commit is contained in:
Jakob Borg 2022-07-28 19:08:51 +02:00
parent 212258d213
commit dde275c6cc
3 changed files with 2 additions and 2 deletions

View File

@ -9,6 +9,8 @@
package connections
var errNotInBuild = fmt.Errorf("%w: disabled at build time", errUnsupported)
func init() {
for _, scheme := range []string{"quic", "quic4", "quic6"} {
listeners[scheme] = invalidListener{err: errNotInBuild}

View File

@ -56,7 +56,6 @@ var (
// These are specific explanations for errUnsupported.
errDisabled = fmt.Errorf("%w: disabled by configuration", errUnsupported)
errDeprecated = fmt.Errorf("%w: deprecated", errUnsupported)
errNotInBuild = fmt.Errorf("%w: disabled at build time", errUnsupported)
// Various reasons to reject a connection
errNetworkNotAllowed = errors.New("network not allowed")

View File

@ -198,7 +198,6 @@ var (
errEncryptionTokenWrite = errors.New("failed to write encryption token")
errMissingRemoteInClusterConfig = errors.New("remote device missing in cluster config")
errMissingLocalInClusterConfig = errors.New("local device missing in cluster config")
errConnLimitReached = errors.New("connection limit reached")
)
// NewModel creates and starts a new model. The model starts in read-only mode,