Stats: remove unused cache_count() method.

This commit is contained in:
Brian Simpson
2015-02-26 00:59:27 -05:00
parent 28fd413d75
commit 8e72645077

View File

@@ -339,13 +339,6 @@ class Stats:
counter.increment(name)
counter.increment('total')
def cache_count(self, name, delta=1, sample_rate=None):
if sample_rate is None:
sample_rate = self.CACHE_SAMPLE_RATE
counter = self.get_counter('cache')
if counter and random.random() < sample_rate:
counter.increment(name, delta=delta)
def cache_count_multi(self, data, sample_rate=None):
if sample_rate is None:
sample_rate = self.CACHE_SAMPLE_RATE