diff --git a/comfy/cmd/hook_breaker_ac10a0.py b/comfy/cmd/hook_breaker_ac10a0.py deleted file mode 100644 index 261ffba52..000000000 --- a/comfy/cmd/hook_breaker_ac10a0.py +++ /dev/null @@ -1,17 +0,0 @@ -# Prevent custom nodes from hooking anything important -from .. import model_management - -HOOK_BREAK = [(model_management, "cast_to")] - - -SAVED_FUNCTIONS = [] - - -def save_functions(): - for f in HOOK_BREAK: - SAVED_FUNCTIONS.append((f[0], f[1], getattr(f[0], f[1]))) - - -def restore_functions(): - for f in SAVED_FUNCTIONS: - setattr(f[0], f[1], f[2])