Skip to content

Commit

Permalink
Merge pull request GoogleCloudPlatform#1971 from justinsb/fix_double_…
Browse files Browse the repository at this point in the history
…map_get

fix: remove duplicate method
  • Loading branch information
google-oss-prow[bot] authored Jun 9, 2024
2 parents a412d1d + 18acc4b commit d0a686b
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions mockgcp/tools/gapic/pkg/sorted/map.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
// {
Expand Down

0 comments on commit d0a686b

Please sign in to comment.