mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-27 09:45:13 +00:00
[API] Remove unused: LGraph.getSupportedTypes (#849)
Also removes unused `supported_types` static array.
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user