Remove the useless function

The "from_hmap" in subscription class is never used.

Change-Id: I8d4954b53ee3236731de276b545e5150510eca8f
This commit is contained in:
wangxiyuan 2016-08-10 11:56:30 +08:00
parent 77d0567dc5
commit fb775a99f4

View File

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