Skip to content

Commit c08f6dd

Browse files
committed
Remove unused LRUCachedFunc class
1 parent d154466 commit c08f6dd

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

circuitpython_functools.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -107,24 +107,6 @@ def cache_clear(self):
107107
gc.collect()
108108

109109

110-
class LRUCachedFunc:
111-
"""Wrapped LRU cache function."""
112-
113-
def __init__(self, wrapped_func, maxsize):
114-
"""Initialize the wrapped LRU cache function."""
115-
self._maxsize = maxsize
116-
self._wrapped_func = wrapped_func
117-
118-
def __call__(self, *args, **kwargs):
119-
"""Call the wrapped function."""
120-
print(type(self._wrapped_func))
121-
return self._wrapped_func(*args, **kwargs)
122-
123-
def cache_clear(self):
124-
"""Clear the LRU cache."""
125-
return self.cache_clear()
126-
127-
128110
def cache(user_function):
129111
"""Create an unbounded cache."""
130112
return CachedFunc(-1, user_function)

0 commit comments

Comments
 (0)