Merge "Remove the useless function"

This commit is contained in:
Jenkins 2016-08-18 19:53:01 +00:00 committed by Gerrit Code Review
commit ff67ea2c87

View File

@ -125,11 +125,6 @@ class SubscriptionEnvelope(object):
self.expires = kwargs.get('expires', float('inf')) self.expires = kwargs.get('expires', float('inf'))
self.options = kwargs['options'] self.options = kwargs['options']
@staticmethod
def from_hmap(hmap):
kwargs = _hmap_kv_to_subenv(hmap)
return SubscriptionEnvelope(**kwargs)
@staticmethod @staticmethod
def from_redis(sid, client): def from_redis(sid, client):
values = client.hmget(sid, SUBENV_FIELD_KEYS) values = client.hmget(sid, SUBENV_FIELD_KEYS)