From de071d9b174a77f44ea6d1e6379564885c4343f1 Mon Sep 17 00:00:00 2001 From: William Ting Date: Wed, 2 Nov 2016 14:41:22 -0700 Subject: [PATCH] Remove unused Cassandra Counter. --- r2/r2/lib/db/tdb_cassandra.py | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/r2/r2/lib/db/tdb_cassandra.py b/r2/r2/lib/db/tdb_cassandra.py index c199fef8d7..323574d878 100644 --- a/r2/r2/lib/db/tdb_cassandra.py +++ b/r2/r2/lib/db/tdb_cassandra.py @@ -190,35 +190,6 @@ def __init__(cls, name, bases, dct): def __repr__(cls): return '' % cls.__name__ -class Counter(object): - __metaclass__ = ThingMeta - - _use_db = False - _connection_pool = 'main' - _extra_schema_creation_args = { - 'default_validation_class': COUNTER_COLUMN_TYPE, - 'replicate_on_write': True - } - - _type_prefix = None - _cf_name = None - _compare_with = UTF8_TYPE - - @classmethod - def _byID(cls, key): - return cls._cf.get(key) - - @classmethod - @will_write - def _incr(cls, key, column, delta=1, super_column=None): - cls._cf.add(key, column, delta, super_column) - - @classmethod - @will_write - def _incr_multi(cls, key, data): - with cls._cf.batch() as b: - b.insert(key, data) - class ThingBase(object): # base class for Thing