Skip to content

Commit

Permalink
gopls/internal/utils/immutable: remove unused Map.Keys
Browse files Browse the repository at this point in the history
Change-Id: Ib2f4cea4310dc2ea3b3c70264e90535516b418aa
GitHub-Last-Rev: 3f22148
GitHub-Pull-Request: #473
Reviewed-on: https://go-review.googlesource.com/c/tools/+/561117
Reviewed-by: Robert Findley <[email protected]>
LUCI-TryBot-Result: Go LUCI <[email protected]>
Auto-Submit: Robert Findley <[email protected]>
Reviewed-by: David Chase <[email protected]>
  • Loading branch information
qiulaidongfeng authored and gopherbot committed Feb 7, 2024
1 parent c11269c commit acf07b3
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions gopls/internal/util/immutable/immutable.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,6 @@ func MapOf[K comparable, V any](m map[K]V) Map[K, V] {
return Map[K, V]{m}
}

// Keys returns all keys present in the map.
func (m Map[K, V]) Keys() []K {
var keys []K
for k := range m.m {
keys = append(keys, k)
}
return keys
}

// Value returns the mapped value for k.
// It is equivalent to the commaok form of an ordinary go map, and returns
// (zero, false) if the key is not present.
Expand Down

0 comments on commit acf07b3

Please sign in to comment.