carbonara: remove unused class

The mixin is not used anymore, the methods are overwritten where needed
anyway.

Change-Id: I6bc36f8686aef84caf90ee153e99a5acb7c45831
This commit is contained in:
Julien Danjou 2016-08-09 09:39:49 +02:00
parent 9bc426d901
commit 5f9e39be8b

View File

@ -77,17 +77,7 @@ class UnknownAggregationMethod(Exception):
"Unknown aggregation method `%s'" % agg)
class SerializableMixin(object):
@classmethod
def unserialize(cls, data):
return cls.from_dict(msgpack.loads(data, encoding='utf-8'))
def serialize(self):
return msgpack.dumps(self.to_dict())
class TimeSerie(SerializableMixin):
class TimeSerie(object):
"""A representation of series of a timestamp with a value.
Duplicate timestamps are not allowed and will be filtered to use the
@ -185,6 +175,13 @@ class TimeSerie(SerializableMixin):
except IndexError:
return
@classmethod
def unserialize(cls, data):
return cls.from_dict(msgpack.loads(data, encoding='utf-8'))
def serialize(self):
return msgpack.dumps(self.to_dict())
class BoundTimeSerie(TimeSerie):
def __init__(self, ts=None, block_size=None, back_window=0):