diff options
-rw-r--r-- | service/pixelated/bitmask_libraries/keymanager.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/service/pixelated/bitmask_libraries/keymanager.py b/service/pixelated/bitmask_libraries/keymanager.py index 6024dd71..59f9f62f 100644 --- a/service/pixelated/bitmask_libraries/keymanager.py +++ b/service/pixelated/bitmask_libraries/keymanager.py @@ -75,11 +75,6 @@ class Keymanager(object): except KeyNotFound: defer.returnValue(None) - def should_renew(self, key): - # feature envy -- should be in keymanager - till_expiry_date = (key.expiry_date - datetime.datetime.now()) - return till_expiry_date.days < DEFAULT_EXTENSION_THRESHOLD - @defer.inlineCallbacks def get_key(self, email, private=False, fetch_remote=True): key = yield self.keymanager.get_key(email, private=private, fetch_remote=fetch_remote) |