From 80d90cfa3bab5f7038fd3e35f9aa3ce70984d136 Mon Sep 17 00:00:00 2001 From: David Ashpole Date: Mon, 22 Jan 2024 14:58:14 +0000 Subject: [PATCH] address feedback --- sdk/metric/cache.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/sdk/metric/cache.go b/sdk/metric/cache.go index 412f3502339..e9c0b38d0bc 100644 --- a/sdk/metric/cache.go +++ b/sdk/metric/cache.go @@ -92,10 +92,3 @@ func (c *cacheWithErr[K, V]) Lookup(key K, f func() (V, error)) (V, error) { }) return combined.val, combined.err } - -// HasKey returns true if Lookup has previously been called with that key -// -// HasKey is safe to call concurrently. -func (c *cacheWithErr[K, V]) HasKey(key K) bool { - return c.cache.HasKey(key) -}