Skip to content
Snippets Groups Projects
Commit 1ccd5676 authored by Erik Johnston's avatar Erik Johnston
Browse files

Remove needless call to evict()

parent d9062060
No related branches found
No related tags found
No related merge requests found
......@@ -154,7 +154,6 @@ class LruCache(object):
def cache_set_default(key, value):
node = cache.get(key, None)
if node is not None:
evict() # As the new node may be bigger than the old node.
return node.value
else:
add_node(key, value)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment