Skip to content

Commit 98420e1

Browse files
committed
remove unused MostRecentProvider._can_use_current
1 parent b405026 commit 98420e1

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/dynamodb_encryption_sdk/material_providers/most_recent.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -197,18 +197,6 @@ def _ttl_action(self):
197197

198198
return TtlActions.EXPIRED
199199

200-
def _can_use_current(self):
201-
# type: () -> bool
202-
"""Determine if we can use the current known max version without asking the provider store.
203-
204-
:returns: decision
205-
:rtype: bool
206-
"""
207-
if self._version is None:
208-
return False
209-
210-
return time.time() - self._last_updated < self._version_ttl
211-
212200
def _set_most_recent_version(self, version):
213201
# type: (int) -> None
214202
"""Set the most recent version and update the last updated time.

0 commit comments

Comments
 (0)