mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-30 03:01:54 +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 */
|
/** @param options Parameter is never used */
|
||||||
static showMenuNodeOptionalInputs(
|
static showMenuNodeOptionalInputs(
|
||||||
v: unknown,
|
v: unknown,
|
||||||
options: INodeInputSlot[],
|
/** Unused - immediately overwritten */
|
||||||
|
_options: boolean,
|
||||||
e: MouseEvent,
|
e: MouseEvent,
|
||||||
prev_menu: ContextMenu,
|
prev_menu: ContextMenu,
|
||||||
node: LGraphNode,
|
node: LGraphNode,
|
||||||
@@ -905,9 +906,9 @@ export class LGraphCanvas implements ConnectionColorContext {
|
|||||||
const canvas = LGraphCanvas.active_canvas
|
const canvas = LGraphCanvas.active_canvas
|
||||||
const ref_window = canvas.getCanvasWindow()
|
const ref_window = canvas.getCanvasWindow()
|
||||||
|
|
||||||
options = node.onGetInputs
|
const options = node.onGetInputs
|
||||||
? node.onGetInputs()
|
? node.onGetInputs()
|
||||||
: node.optional_inputs
|
: undefined
|
||||||
|
|
||||||
let entries: IOptionalSlotData<INodeInputSlot>[] = []
|
let entries: IOptionalSlotData<INodeInputSlot>[] = []
|
||||||
if (options) {
|
if (options) {
|
||||||
@@ -973,7 +974,8 @@ export class LGraphCanvas implements ConnectionColorContext {
|
|||||||
/** @param options Parameter is never used */
|
/** @param options Parameter is never used */
|
||||||
static showMenuNodeOptionalOutputs(
|
static showMenuNodeOptionalOutputs(
|
||||||
v: unknown,
|
v: unknown,
|
||||||
options: INodeOutputSlot[],
|
/** Unused - immediately overwritten */
|
||||||
|
_options: INodeOutputSlot[],
|
||||||
e: unknown,
|
e: unknown,
|
||||||
prev_menu: ContextMenu,
|
prev_menu: ContextMenu,
|
||||||
node: LGraphNode,
|
node: LGraphNode,
|
||||||
@@ -984,9 +986,9 @@ export class LGraphCanvas implements ConnectionColorContext {
|
|||||||
const canvas = LGraphCanvas.active_canvas
|
const canvas = LGraphCanvas.active_canvas
|
||||||
const ref_window = canvas.getCanvasWindow()
|
const ref_window = canvas.getCanvasWindow()
|
||||||
|
|
||||||
options = node.onGetOutputs
|
const options = node.onGetOutputs
|
||||||
? node.onGetOutputs()
|
? node.onGetOutputs()
|
||||||
: node.optional_outputs
|
: undefined
|
||||||
|
|
||||||
let entries: IOptionalSlotData<INodeOutputSlot>[] = []
|
let entries: IOptionalSlotData<INodeOutputSlot>[] = []
|
||||||
if (options) {
|
if (options) {
|
||||||
|
|||||||
@@ -279,10 +279,6 @@ export class LGraphNode implements Positionable, IPinnable, IColorable {
|
|||||||
_shape?: RenderShape
|
_shape?: RenderShape
|
||||||
mouseOver?: IMouseOverData
|
mouseOver?: IMouseOverData
|
||||||
redraw_on_mouse?: boolean
|
redraw_on_mouse?: boolean
|
||||||
// Appears unused
|
|
||||||
optional_inputs?
|
|
||||||
// Appears unused
|
|
||||||
optional_outputs?
|
|
||||||
resizable?: boolean
|
resizable?: boolean
|
||||||
clonable?: boolean
|
clonable?: boolean
|
||||||
_relative_id?: number
|
_relative_id?: number
|
||||||
|
|||||||
@@ -82,8 +82,6 @@ LGraph {
|
|||||||
"lostFocusAt": undefined,
|
"lostFocusAt": undefined,
|
||||||
"mode": 0,
|
"mode": 0,
|
||||||
"mouseOver": undefined,
|
"mouseOver": undefined,
|
||||||
"optional_inputs": undefined,
|
|
||||||
"optional_outputs": undefined,
|
|
||||||
"order": 0,
|
"order": 0,
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"properties": {},
|
"properties": {},
|
||||||
@@ -148,8 +146,6 @@ LGraph {
|
|||||||
"lostFocusAt": undefined,
|
"lostFocusAt": undefined,
|
||||||
"mode": 0,
|
"mode": 0,
|
||||||
"mouseOver": undefined,
|
"mouseOver": undefined,
|
||||||
"optional_inputs": undefined,
|
|
||||||
"optional_outputs": undefined,
|
|
||||||
"order": 0,
|
"order": 0,
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"properties": {},
|
"properties": {},
|
||||||
@@ -215,8 +211,6 @@ LGraph {
|
|||||||
"lostFocusAt": undefined,
|
"lostFocusAt": undefined,
|
||||||
"mode": 0,
|
"mode": 0,
|
||||||
"mouseOver": undefined,
|
"mouseOver": undefined,
|
||||||
"optional_inputs": undefined,
|
|
||||||
"optional_outputs": undefined,
|
|
||||||
"order": 0,
|
"order": 0,
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"properties": {},
|
"properties": {},
|
||||||
|
|||||||
@@ -84,8 +84,6 @@ LGraph {
|
|||||||
"lostFocusAt": undefined,
|
"lostFocusAt": undefined,
|
||||||
"mode": undefined,
|
"mode": undefined,
|
||||||
"mouseOver": undefined,
|
"mouseOver": undefined,
|
||||||
"optional_inputs": undefined,
|
|
||||||
"optional_outputs": undefined,
|
|
||||||
"order": 0,
|
"order": 0,
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"properties": {},
|
"properties": {},
|
||||||
@@ -152,8 +150,6 @@ LGraph {
|
|||||||
"lostFocusAt": undefined,
|
"lostFocusAt": undefined,
|
||||||
"mode": undefined,
|
"mode": undefined,
|
||||||
"mouseOver": undefined,
|
"mouseOver": undefined,
|
||||||
"optional_inputs": undefined,
|
|
||||||
"optional_outputs": undefined,
|
|
||||||
"order": 0,
|
"order": 0,
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"properties": {},
|
"properties": {},
|
||||||
@@ -221,8 +217,6 @@ LGraph {
|
|||||||
"lostFocusAt": undefined,
|
"lostFocusAt": undefined,
|
||||||
"mode": undefined,
|
"mode": undefined,
|
||||||
"mouseOver": undefined,
|
"mouseOver": undefined,
|
||||||
"optional_inputs": undefined,
|
|
||||||
"optional_outputs": undefined,
|
|
||||||
"order": 0,
|
"order": 0,
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"properties": {},
|
"properties": {},
|
||||||
|
|||||||
@@ -82,8 +82,6 @@ LGraph {
|
|||||||
"lostFocusAt": undefined,
|
"lostFocusAt": undefined,
|
||||||
"mode": 0,
|
"mode": 0,
|
||||||
"mouseOver": undefined,
|
"mouseOver": undefined,
|
||||||
"optional_inputs": undefined,
|
|
||||||
"optional_outputs": undefined,
|
|
||||||
"order": 0,
|
"order": 0,
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"properties": {},
|
"properties": {},
|
||||||
@@ -148,8 +146,6 @@ LGraph {
|
|||||||
"lostFocusAt": undefined,
|
"lostFocusAt": undefined,
|
||||||
"mode": 0,
|
"mode": 0,
|
||||||
"mouseOver": undefined,
|
"mouseOver": undefined,
|
||||||
"optional_inputs": undefined,
|
|
||||||
"optional_outputs": undefined,
|
|
||||||
"order": 0,
|
"order": 0,
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"properties": {},
|
"properties": {},
|
||||||
@@ -215,8 +211,6 @@ LGraph {
|
|||||||
"lostFocusAt": undefined,
|
"lostFocusAt": undefined,
|
||||||
"mode": 0,
|
"mode": 0,
|
||||||
"mouseOver": undefined,
|
"mouseOver": undefined,
|
||||||
"optional_inputs": undefined,
|
|
||||||
"optional_outputs": undefined,
|
|
||||||
"order": 0,
|
"order": 0,
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"properties": {},
|
"properties": {},
|
||||||
|
|||||||
Reference in New Issue
Block a user