From e71df690f7b7ec13a8ef1aa2a9957f3c1057a00e Mon Sep 17 00:00:00 2001 From: Thomas Pelletier Date: Sat, 23 Sep 2023 19:59:27 -0700 Subject: [PATCH] Remove unused code --- internal/serde/typemap.go | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/internal/serde/typemap.go b/internal/serde/typemap.go index 8709da0..98c4528 100644 --- a/internal/serde/typemap.go +++ b/internal/serde/typemap.go @@ -105,14 +105,3 @@ func (m *doublemap[K, V]) Add(k K, v V) V { m.fromV[v] = k return v } - -type set[T comparable] map[T]struct{} - -func (s set[T]) has(x T) bool { - _, ok := s[x] - return ok -} - -func (s set[T]) add(x T) { - s[x] = struct{}{} -}