From cdc1b8e01f6e04b1dc37dfac0d6250b0e2b014bb Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 12 Dec 2025 19:39:41 +0530 Subject: [PATCH] Remove unused code --- src/calibre/gui2/library/caches.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/calibre/gui2/library/caches.py b/src/calibre/gui2/library/caches.py index 50ba77f5a4..a7d8f525ba 100644 --- a/src/calibre/gui2/library/caches.py +++ b/src/calibre/gui2/library/caches.py @@ -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: