mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-04-03 07:41:58 -04:00
Remove unused code
This commit is contained in:
parent
3a4e506cae
commit
cdc1b8e01f
@ -97,9 +97,6 @@ class RAMCache(MutableMapping[int, T]):
|
||||
with self.lock:
|
||||
return len(self.items)
|
||||
|
||||
def __hash__(self) -> int: # needed to be able to store this object in a set, used by db.Cache
|
||||
return id(self)
|
||||
|
||||
def clear(self) -> None:
|
||||
with self.lock:
|
||||
if current_thread() is not self.gui_thread:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user