From 18acc4b1ac29f9686a15784e48f4000830ccd90b Mon Sep 17 00:00:00 2001 From: justinsb Date: Fri, 7 Jun 2024 12:12:03 -0400 Subject: [PATCH] fix: remove duplicate method Looks like two PRs both added the same Get method to Map. --- mockgcp/tools/gapic/pkg/sorted/map.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/mockgcp/tools/gapic/pkg/sorted/map.go b/mockgcp/tools/gapic/pkg/sorted/map.go index b1f8d5a6f5..6f35aa81ef 100644 --- a/mockgcp/tools/gapic/pkg/sorted/map.go +++ b/mockgcp/tools/gapic/pkg/sorted/map.go @@ -51,16 +51,6 @@ func (m *Map[K, V]) Entries() []Entry[K, V] { return m.entries } -func (m *Map[K, V]) Get(k K) V { - for _, entry := range m.entries { - if entry.Key == k { - return entry.Value - } - } - var emptyV V - return emptyV -} - func (m *Map[K, V]) UnmarshalJSON(b []byte) error { dec := json.NewDecoder(bytes.NewReader(b)) // {