[API] Remove unused: LGraph.getSupportedTypes (#849)

Also removes unused `supported_types` static array.
This commit is contained in:
filtered
2025-03-24 18:03:07 +11:00
committed by GitHub
parent f0bd360935
commit 5662aa3790

View File

@@ -58,8 +58,6 @@ export interface LGraphConfig {
export class LGraph implements LinkNetwork, Serialisable<SerialisableGraph> {
static serialisedSchemaVersion = 1 as const
// default supported types
static supported_types = ["number", "string", "boolean"]
static STATUS_STOPPED = 1
static STATUS_RUNNING = 2
@@ -206,13 +204,6 @@ export class LGraph implements LinkNetwork, Serialisable<SerialisableGraph> {
if (o) this.configure(o)
}
// TODO: Remove
// used to know which types of connections support this graph (some graphs do not allow certain types)
getSupportedTypes(): string[] {
// @ts-expect-error
return this.supported_types || LGraph.supported_types
}
/**
* Removes all nodes from this graph
*/