From d7dd1c63eec66f51aecadbc5d62ed0d13ddf9846 Mon Sep 17 00:00:00 2001 From: Tim Vaillancourt Date: Fri, 7 Jun 2024 19:33:53 +0200 Subject: [PATCH] Rm unused func Signed-off-by: Tim Vaillancourt --- go/vt/throttler/replication_lag_cache.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/go/vt/throttler/replication_lag_cache.go b/go/vt/throttler/replication_lag_cache.go index d0dce3ea67a..ab26c0bc6b8 100644 --- a/go/vt/throttler/replication_lag_cache.go +++ b/go/vt/throttler/replication_lag_cache.go @@ -61,13 +61,6 @@ func newReplicationLagCache(historyCapacityPerReplica int) *replicationLagCache } } -// getEntries returns all available entries from the cache. -func (c *replicationLagCache) getEntries() map[string]*replicationLagHistory { - c.mu.Lock() - defer c.mu.Unlock() - return c.entries -} - // add inserts or updates "r" in the cache for the replica with the key "r.Key". func (c *replicationLagCache) add(r replicationLagRecord) { c.mu.Lock()