aboutsummaryrefslogtreecommitdiff
path: root/lib/connections/service.go
diff options
context:
space:
mode:
Diffstat (limited to 'lib/connections/service.go')
-rw-r--r--lib/connections/service.go21
1 files changed, 1 insertions, 20 deletions
diff --git a/lib/connections/service.go b/lib/connections/service.go
index c08a47c95..359dcff4d 100644
--- a/lib/connections/service.go
+++ b/lib/connections/service.go
@@ -22,14 +22,12 @@ import (
"math"
"net"
"net/url"
+ "slices"
"sort"
"strings"
stdsync "sync"
"time"
- "golang.org/x/exp/constraints"
- "golang.org/x/exp/slices"
-
"github.com/syncthing/syncthing/lib/build"
"github.com/syncthing/syncthing/lib/config"
"github.com/syncthing/syncthing/lib/connections/registry"
@@ -1468,20 +1466,3 @@ func newConnectionID(t0, t1 int64) string {
// from the random. We want the timestamp part deterministic.
return enc.EncodeToString(buf[:8]) + enc.EncodeToString(buf[8:])
}
-
-// temporary implementations of min and max, to be removed once we can use
-// Go 1.21 builtins. :)
-
-func min[T constraints.Ordered](a, b T) T {
- if a < b {
- return a
- }
- return b
-}
-
-func max[T constraints.Ordered](a, b T) T {
- if a > b {
- return a
- }
- return b
-}