[API] Remove unused: LGraph.onAction (#802)

This commit is contained in:
filtered
2025-03-19 07:06:46 +11:00
committed by GitHub
parent 7845be9b15
commit e65898b9ec

View File

@@ -1131,25 +1131,6 @@ export class LGraph implements LinkNetwork, Serialisable<SerialisableGraph> {
}
// ********** 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)
}