1
0
mirror of https://github.com/huggingface/diffusers.git synced 2026-01-29 07:22:12 +03:00

remove unused function

This commit is contained in:
Aryan
2025-05-16 12:37:01 +02:00
parent 153cf0c393
commit a5fe2bd4fd

View File

@@ -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)