prysmaticlabs / prysm

Unused code SCC-U1000
Bug risk
Major
21 occurrences in this check
func (*SyncCommitteeHeadStateCache[K, V]).missCache is unused
 60	c.promCacheHit.Inc()
 61}
 62
 63func (c *SyncCommitteeHeadStateCache[K, V]) missCache() { //nolint: unused, -- bug in golangci-lint 1.55 64	c.promCacheMiss.Inc()
 65}
 66
func (*SyncCommitteeHeadStateCache[K, V]).hitCache is unused
 56	return c.lru
 57}
 58
 59func (c *SyncCommitteeHeadStateCache[K, V]) hitCache() { //nolint: unused, -- bug in golangci-lint 1.55 60	c.promCacheHit.Inc()
 61}
 62
func (*SyncCommitteeHeadStateCache[K, V]).get is unused
 52	}, nil
 53}
 54
 55func (c *SyncCommitteeHeadStateCache[K, V]) get() *lru.Cache[K, V] { //nolint: unused, -- bug in golangci-lint 1.55 56	return c.lru
 57}
 58
func (*subnetIDsAggregatorCache[K, V]).missCache is unused
112	s.promCacheHit.Inc()
113}
114
115func (s *subnetIDsAggregatorCache[K, V]) missCache() { //nolint: unused, -- bug in golangci-lint 1.55116	s.promCacheMiss.Inc()
117}
118
func (*subnetIDsAggregatorCache[K, V]).hitCache is unused
108	return s.lru
109}
110
111func (s *subnetIDsAggregatorCache[K, V]) hitCache() { //nolint: unused, -- bug in golangci-lint 1.55112	s.promCacheHit.Inc()
113}
114
func (*subnetIDsAggregatorCache[K, V]).get is unused
104	}, nil
105}
106
107func (s *subnetIDsAggregatorCache[K, V]) get() *lru.Cache[K, V] { //nolint: unused, -- bug in golangci-lint 1.55108	return s.lru
109}
110
func (*subnetIDsAttesterCache[K, V]).missCache is unused
 58	s.promCacheHit.Inc()
 59}
 60
 61func (s *subnetIDsAttesterCache[K, V]) missCache() { //nolint: unused, -- bug in golangci-lint 1.55 62	s.promCacheMiss.Inc()
 63}
 64
func (*subnetIDsAttesterCache[K, V]).hitCache is unused
 54	return s.lru
 55}
 56
 57func (s *subnetIDsAttesterCache[K, V]) hitCache() { //nolint: unused, -- bug in golangci-lint 1.55 58	s.promCacheHit.Inc()
 59}
 60
func (*subnetIDsAttesterCache[K, V]).get is unused
 50	}, nil
 51}
 52
 53func (s *subnetIDsAttesterCache[K, V]) get() *lru.Cache[K, V] { //nolint: unused, -- bug in golangci-lint 1.55 54	return s.lru
 55}
 56
func (*SkipSlotCache[K, V]).missCache is unused
 76	c.promCacheHit.Inc()
 77}
 78
 79func (c *SkipSlotCache[K, V]) missCache() { //nolint: unused, -- bug in golangci-lint 1.55 80	c.promCacheMiss.Inc()
 81}
 82
func (*SkipSlotCache[K, V]).hitCache is unused
 72	return c.lru
 73}
 74
 75func (c *SkipSlotCache[K, V]) hitCache() { //nolint: unused, -- bug in golangci-lint 1.55 76	c.promCacheHit.Inc()
 77}
 78
func (*SkipSlotCache[K, V]).get is unused
 68	}, nil
 69}
 70
 71func (c *SkipSlotCache[K, V]) get() *lru.Cache[K, V] { //nolint: unused, -- bug in golangci-lint 1.55 72	return c.lru
 73}
 74
func (*CommitteeCache[K, V]).missCache is unused
 82	c.promCacheHit.Inc()
 83}
 84
 85func (c *CommitteeCache[K, V]) missCache() { //nolint: unused, -- bug in golangci-lint 1.55 86	c.promCacheMiss.Inc()
 87}
 88
func (*CommitteeCache[K, V]).hitCache is unused
 78	return c.lru
 79}
 80
 81func (c *CommitteeCache[K, V]) hitCache() { //nolint: unused, -- bug in golangci-lint 1.55 82	c.promCacheHit.Inc()
 83}
 84
func (*CommitteeCache[K, V]).get is unused
 74	}, nil
 75}
 76
 77func (c *CommitteeCache[K, V]) get() *lru.Cache[K, V] { //nolint: unused, -- bug in golangci-lint 1.55 78	return c.lru
 79}
 80
func (*CheckpointStateCache[K, V]).missCache is unused
 64	c.promCacheHit.Inc()
 65}
 66
 67func (c *CheckpointStateCache[K, V]) missCache() { //nolint: unused, -- bug in golangci-lint 1.55 68	c.promCacheMiss.Inc()
 69}
 70
func (*CheckpointStateCache[K, V]).hitCache is unused
 60	return c.lru
 61}
 62
 63func (c *CheckpointStateCache[K, V]) hitCache() { //nolint: unused, -- bug in golangci-lint 1.55 64	c.promCacheHit.Inc()
 65}
 66
func (*CheckpointStateCache[K, V]).get is unused
 56	}, nil
 57}
 58
 59func (c *CheckpointStateCache[K, V]) get() *lru.Cache[K, V] { //nolint: unused, -- bug in golangci-lint 1.55 60	return c.lru
 61}
 62
func (*BalanceCache[K, V]).missCache is unused
 64	c.promCacheHit.Inc()
 65}
 66
 67func (c *BalanceCache[K, V]) missCache() { //nolint: unused, -- bug in golangci-lint 1.55 68	c.promCacheMiss.Inc()
 69}
 70
func (*BalanceCache[K, V]).hitCache is unused
 60	return c.lru
 61}
 62
 63func (c *BalanceCache[K, V]) hitCache() { //nolint: unused, -- bug in golangci-lint 1.55 64	c.promCacheHit.Inc()
 65}
 66
func (*BalanceCache[K, V]).get is unused
 56	}, nil
 57}
 58
 59func (c *BalanceCache[K, V]) get() *lru.Cache[K, V] { //nolint: unused, -- bug in golangci-lint 1.55 60	return c.lru
 61}
 62