From 1107f4322b154b18dc5f828df4f201705320179c Mon Sep 17 00:00:00 2001 From: Deluxe233 Date: Mon, 26 Jan 2026 09:40:45 -0500 Subject: [PATCH] Removed unused method --- comfy_execution/caching.py | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/comfy_execution/caching.py b/comfy_execution/caching.py index 751c76e9f..8fcd19b00 100644 --- a/comfy_execution/caching.py +++ b/comfy_execution/caching.py @@ -52,9 +52,6 @@ class CacheKeySet(ABC): def is_key_updated(self, node_id) -> bool: return True - - def is_key_updatable(self, node_id) -> bool: - return False class Unhashable: def __init__(self): @@ -128,12 +125,6 @@ class CacheKeySetUpdatableInputSignature(CacheKeySet): def is_key_updated(self, node_id): return node_id in self.updated_node_ids - def is_key_updatable(self, node_id): - _, missing_keys, _ = self.is_changed.get_input_data(node_id) - if missing_keys: - return False - return True - async def add_keys(self, node_ids): """Initialize keys.""" for node_id in node_ids: @@ -301,10 +292,6 @@ class BasicCache: def _is_key_updated_immediate(self, node_id): """False if the cache key set is an updatable type and it hasn't been updated yet.""" return self.cache_key_set.is_key_updated(node_id) - - def _is_key_updatable_immediate(self, node_id): - """True if the cache key set is an updatable type and it can be updated properly.""" - return self.cache_key_set.is_key_updatable(node_id) def _set_immediate(self, node_id, value): assert self.initialized @@ -394,11 +381,6 @@ class HierarchicalCache(BasicCache): assert cache is not None return cache._is_key_updated_immediate(node_id) - def is_key_updatable(self, node_id): - cache = self._get_cache_for(node_id) - assert cache is not None - return cache._is_key_updatable_immediate(node_id) - class NullCache: async def set_prompt(self, dynprompt, node_ids, is_changed): pass @@ -427,9 +409,6 @@ class NullCache: def is_key_updated(self, node_id): return True - def is_key_updatable(self, node_id): - return False - class LRUCache(BasicCache): def __init__(self, key_class, max_size=100): super().__init__(key_class) @@ -490,10 +469,6 @@ class LRUCache(BasicCache): self._mark_used(node_id) return self._is_key_updated_immediate(node_id) - def is_key_updatable(self, node_id): - self._mark_used(node_id) - return self._is_key_updatable_immediate(node_id) - #Iterating the cache for usage analysis might be expensive, so if we trigger make sure #to take a chunk out to give breathing space on high-node / low-ram-per-node flows.