refactor: Remove unused DataWrapper class to clean up utils.js

This commit is contained in:
Will Miao
2025-08-19 20:19:58 +08:00
parent 32d2b6c013
commit 6500936aad

View File

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