From a5fe2bd4fd825bf64c2c7a717f031bfda700e36c Mon Sep 17 00:00:00 2001 From: Aryan Date: Fri, 16 May 2025 12:37:01 +0200 Subject: [PATCH] remove unused function --- src/diffusers/hooks/hooks.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/diffusers/hooks/hooks.py b/src/diffusers/hooks/hooks.py index 3b39829fc5..4b8810ae68 100644 --- a/src/diffusers/hooks/hooks.py +++ b/src/diffusers/hooks/hooks.py @@ -289,7 +289,3 @@ class HookRegistry: if i < len(self._hook_order) - 1: registry_repr += "\n" return f"HookRegistry(\n{registry_repr}\n)" - - -def _is_dunder_method(name: str) -> bool: - return name.startswith("__") and name.endswith("__") and name in dir(object)