From e65898b9ec27ca10cc6e91fa49f335706ad92e13 Mon Sep 17 00:00:00 2001 From: filtered <176114999+webfiltered@users.noreply.github.com> Date: Wed, 19 Mar 2025 07:06:46 +1100 Subject: [PATCH] [API] Remove unused: LGraph.onAction (#802) --- src/LGraph.ts | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/src/LGraph.ts b/src/LGraph.ts index 7d41d87d9..dd4853465 100644 --- a/src/LGraph.ts +++ b/src/LGraph.ts @@ -1131,25 +1131,6 @@ export class LGraph implements LinkNetwork, Serialisable { } // ********** GLOBALS ***************** - onAction( - action: string, - param: unknown, - options: { action_call?: string }, - ): void { - this._input_nodes = this.findNodesByClass( - // @ts-expect-error Never impl. - LiteGraph.GraphInput, - this._input_nodes, - ) - for (const node of this._input_nodes) { - if (node.properties.name != action) continue - - // wrap node.onAction(action, param); - node.actionDo(action, param, options) - break - } - } - trigger(action: string, param: unknown) { this.onTrigger?.(action, param) }