mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-08 17:10:07 +00:00
[API] Remove unused: optional_inputs & outputs (#597)
Code search shows zero usage. If kept, typing properly would require effort. Removed: - `LGraphNode.optional_inputs` - `LGraphNode.optional_outputs`
This commit is contained in:
@@ -893,7 +893,8 @@ export class LGraphCanvas implements ConnectionColorContext {
|
||||
/** @param options Parameter is never used */
|
||||
static showMenuNodeOptionalInputs(
|
||||
v: unknown,
|
||||
options: INodeInputSlot[],
|
||||
/** Unused - immediately overwritten */
|
||||
_options: boolean,
|
||||
e: MouseEvent,
|
||||
prev_menu: ContextMenu,
|
||||
node: LGraphNode,
|
||||
@@ -905,9 +906,9 @@ export class LGraphCanvas implements ConnectionColorContext {
|
||||
const canvas = LGraphCanvas.active_canvas
|
||||
const ref_window = canvas.getCanvasWindow()
|
||||
|
||||
options = node.onGetInputs
|
||||
const options = node.onGetInputs
|
||||
? node.onGetInputs()
|
||||
: node.optional_inputs
|
||||
: undefined
|
||||
|
||||
let entries: IOptionalSlotData<INodeInputSlot>[] = []
|
||||
if (options) {
|
||||
@@ -973,7 +974,8 @@ export class LGraphCanvas implements ConnectionColorContext {
|
||||
/** @param options Parameter is never used */
|
||||
static showMenuNodeOptionalOutputs(
|
||||
v: unknown,
|
||||
options: INodeOutputSlot[],
|
||||
/** Unused - immediately overwritten */
|
||||
_options: INodeOutputSlot[],
|
||||
e: unknown,
|
||||
prev_menu: ContextMenu,
|
||||
node: LGraphNode,
|
||||
@@ -984,9 +986,9 @@ export class LGraphCanvas implements ConnectionColorContext {
|
||||
const canvas = LGraphCanvas.active_canvas
|
||||
const ref_window = canvas.getCanvasWindow()
|
||||
|
||||
options = node.onGetOutputs
|
||||
const options = node.onGetOutputs
|
||||
? node.onGetOutputs()
|
||||
: node.optional_outputs
|
||||
: undefined
|
||||
|
||||
let entries: IOptionalSlotData<INodeOutputSlot>[] = []
|
||||
if (options) {
|
||||
|
||||
@@ -279,10 +279,6 @@ export class LGraphNode implements Positionable, IPinnable, IColorable {
|
||||
_shape?: RenderShape
|
||||
mouseOver?: IMouseOverData
|
||||
redraw_on_mouse?: boolean
|
||||
// Appears unused
|
||||
optional_inputs?
|
||||
// Appears unused
|
||||
optional_outputs?
|
||||
resizable?: boolean
|
||||
clonable?: boolean
|
||||
_relative_id?: number
|
||||
|
||||
@@ -82,8 +82,6 @@ LGraph {
|
||||
"lostFocusAt": undefined,
|
||||
"mode": 0,
|
||||
"mouseOver": undefined,
|
||||
"optional_inputs": undefined,
|
||||
"optional_outputs": undefined,
|
||||
"order": 0,
|
||||
"outputs": [],
|
||||
"properties": {},
|
||||
@@ -148,8 +146,6 @@ LGraph {
|
||||
"lostFocusAt": undefined,
|
||||
"mode": 0,
|
||||
"mouseOver": undefined,
|
||||
"optional_inputs": undefined,
|
||||
"optional_outputs": undefined,
|
||||
"order": 0,
|
||||
"outputs": [],
|
||||
"properties": {},
|
||||
@@ -215,8 +211,6 @@ LGraph {
|
||||
"lostFocusAt": undefined,
|
||||
"mode": 0,
|
||||
"mouseOver": undefined,
|
||||
"optional_inputs": undefined,
|
||||
"optional_outputs": undefined,
|
||||
"order": 0,
|
||||
"outputs": [],
|
||||
"properties": {},
|
||||
|
||||
@@ -84,8 +84,6 @@ LGraph {
|
||||
"lostFocusAt": undefined,
|
||||
"mode": undefined,
|
||||
"mouseOver": undefined,
|
||||
"optional_inputs": undefined,
|
||||
"optional_outputs": undefined,
|
||||
"order": 0,
|
||||
"outputs": [],
|
||||
"properties": {},
|
||||
@@ -152,8 +150,6 @@ LGraph {
|
||||
"lostFocusAt": undefined,
|
||||
"mode": undefined,
|
||||
"mouseOver": undefined,
|
||||
"optional_inputs": undefined,
|
||||
"optional_outputs": undefined,
|
||||
"order": 0,
|
||||
"outputs": [],
|
||||
"properties": {},
|
||||
@@ -221,8 +217,6 @@ LGraph {
|
||||
"lostFocusAt": undefined,
|
||||
"mode": undefined,
|
||||
"mouseOver": undefined,
|
||||
"optional_inputs": undefined,
|
||||
"optional_outputs": undefined,
|
||||
"order": 0,
|
||||
"outputs": [],
|
||||
"properties": {},
|
||||
|
||||
@@ -82,8 +82,6 @@ LGraph {
|
||||
"lostFocusAt": undefined,
|
||||
"mode": 0,
|
||||
"mouseOver": undefined,
|
||||
"optional_inputs": undefined,
|
||||
"optional_outputs": undefined,
|
||||
"order": 0,
|
||||
"outputs": [],
|
||||
"properties": {},
|
||||
@@ -148,8 +146,6 @@ LGraph {
|
||||
"lostFocusAt": undefined,
|
||||
"mode": 0,
|
||||
"mouseOver": undefined,
|
||||
"optional_inputs": undefined,
|
||||
"optional_outputs": undefined,
|
||||
"order": 0,
|
||||
"outputs": [],
|
||||
"properties": {},
|
||||
@@ -215,8 +211,6 @@ LGraph {
|
||||
"lostFocusAt": undefined,
|
||||
"mode": 0,
|
||||
"mouseOver": undefined,
|
||||
"optional_inputs": undefined,
|
||||
"optional_outputs": undefined,
|
||||
"order": 0,
|
||||
"outputs": [],
|
||||
"properties": {},
|
||||
|
||||
Reference in New Issue
Block a user