From 9d8e49b8f8f0c28324358022ca783896e762da8a Mon Sep 17 00:00:00 2001 From: Chenlei Hu Date: Mon, 3 Feb 2025 17:26:37 -0800 Subject: [PATCH] Remove LGraphNode.supported_extensions (#448) --- src/LGraphNode.ts | 1 - src/LiteGraphGlobal.ts | 10 ---------- 2 files changed, 11 deletions(-) diff --git a/src/LGraphNode.ts b/src/LGraphNode.ts index a510dda6b..796de9834 100644 --- a/src/LGraphNode.ts +++ b/src/LGraphNode.ts @@ -143,7 +143,6 @@ export class LGraphNode implements Positionable, IPinnable { static MAX_CONSOLE?: number static type?: string static category?: string - static supported_extensions?: string[] static filter?: string static skip_list?: boolean diff --git a/src/LiteGraphGlobal.ts b/src/LiteGraphGlobal.ts index 3474677f9..f10128b87 100644 --- a/src/LiteGraphGlobal.ts +++ b/src/LiteGraphGlobal.ts @@ -360,16 +360,6 @@ export class LiteGraphGlobal { enumerable: true, configurable: true, }) - - // used to know which nodes to create when dragging files to the canvas - if (base_class.supported_extensions) { - for (const i in base_class.supported_extensions) { - const ext = base_class.supported_extensions[i] - if (ext && typeof ext === "string") { - this.node_types_by_file_extension[ext.toLowerCase()] = base_class - } - } - } } this.registered_node_types[type] = base_class