From 6500936aadfe8cc615a0fc5622c4112fd290c189 Mon Sep 17 00:00:00 2001 From: Will Miao <13051207myq@gmail.com> Date: Tue, 19 Aug 2025 20:19:58 +0800 Subject: [PATCH] refactor: Remove unused DataWrapper class to clean up utils.js --- web/comfyui/utils.js | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/web/comfyui/utils.js b/web/comfyui/utils.js index 47cdcda2..dd4e8132 100644 --- a/web/comfyui/utils.js +++ b/web/comfyui/utils.js @@ -69,21 +69,6 @@ export function hideWidgetForGood(node, widget, suffix = "") { } } -// Wrapper class to handle 'two element array bug' in LiteGraph or comfyui -export class DataWrapper { - constructor(data) { - this.data = data; - } - - getData() { - return this.data; - } - - setData(data) { - this.data = data; - } -} - // Function to get the appropriate loras widget based on ComfyUI version export async function getLorasWidgetModule() { return await dynamicImportByVersion("./loras_widget.js", "./legacy_loras_widget.js");