[API] Remove unused LGraph.onNodeConnectionChange (#701)

Confirmed unused via code search.
This commit is contained in:
filtered
2025-03-04 20:18:38 +11:00
committed by GitHub
parent e4a41669f6
commit 8bee428375
2 changed files with 0 additions and 29 deletions

View File

@@ -1,7 +1,6 @@
import type {
Dictionary,
IContextMenuValue,
ISlotType,
LinkNetwork,
LinkSegment,
MethodNames,
@@ -58,7 +57,6 @@ export interface LGraphConfig {
* supported callbacks:
* + onNodeAdded: when a new node is added to the graph
* + onNodeRemoved: when a node inside this graph is removed
* + onNodeConnectionChange: some connection has changed in the graph (connected or disconnected)
*/
export class LGraph implements LinkNetwork, Serialisable<SerialisableGraph> {
static serialisedSchemaVersion = 1 as const
@@ -206,13 +204,6 @@ export class LGraph implements LinkNetwork, Serialisable<SerialisableGraph> {
onSerialize?(data: ISerialisedGraph | SerialisableGraph): void
onConfigure?(data: ISerialisedGraph | SerialisableGraph): void
onGetNodeMenuOptions?(options: (IContextMenuValue<unknown> | null)[], node: LGraphNode): void
onNodeConnectionChange?(
nodeSlotType: ISlotType,
targetNode: LGraphNode | null | undefined,
slotIndex: number,
sourceNode?: LGraphNode,
sourceSlotIndex?: number,
): void
private _input_nodes?: LGraphNode[]