Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
pelletier committed Sep 24, 2023
1 parent 6418e39 commit e71df69
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions internal/serde/typemap.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}{}
}

0 comments on commit e71df69

Please sign in to comment.