[MOD] remove deprecated code

This commit is contained in:
xiaoshuisheng 2023-12-11 14:12:45 +08:00
parent c89300743b
commit 4a4a889b8e
2 changed files with 0 additions and 15 deletions

View File

@ -227,8 +227,6 @@
}
}
console.log(type);
console.log(base_class);
this.registered_node_types[type] = base_class;
if (base_class.constructor.name) {
this.Nodes[classname] = base_class;
@ -4312,7 +4310,6 @@
// if it is a flow-control connection, and the original output link is not null, discounnect
case "FLOW":
console.log("[Link Connect] remove output links of 'FLOW' connection.");
this.graph.beforeChange();
this.disconnectOutput(slot);
changed = true;
@ -4338,9 +4335,6 @@
target_node.id,
target_slot
);
console.log("new link");
console.trace();
console.log(link_info);
//add to graph links list
this.graph.links[link_info.id] = link_info;

View File

@ -1396,8 +1396,6 @@ export class ComfyApp {
}
async registerNodeDef(nodeId, nodeData) {
console.log("registerNodeDef");
console.log(nodeData);
const self = this;
const node = Object.assign(
function ComfyNode() {
@ -1740,8 +1738,6 @@ export class ComfyApp {
// type: "FLOW"
// // _data: null
// };
console.log("Add Link:");
console.log(link);
graphData.links.push(link);
from_node.outputs[0].links = [link_id];
@ -1788,10 +1784,7 @@ export class ComfyApp {
}
try {
console.trace();
graphData = this.initFlowControlConnection(graphData);
console.log("Graph Data");
console.log(graphData);
this.graph.configure(graphData);
} catch (error) {
let errorHint = [];
@ -1900,8 +1893,6 @@ export class ComfyApp {
}
const _workflow = this.graph.serialize();
console.log("GraphToPrompt, originalPrompt");
console.log(_workflow);
const output = {};
// Process nodes in order of execution
for (const outerNode of this.graph.computeExecutionOrder(false)) {