Remove the useless function
The "from_hmap" in subscription class is never used. Change-Id: I8d4954b53ee3236731de276b545e5150510eca8f
This commit is contained in:
parent
77d0567dc5
commit
fb775a99f4
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user