From 4a4a889b8e12a9862c9072756c90fd3185fa723a Mon Sep 17 00:00:00 2001 From: xiaoshuisheng Date: Mon, 11 Dec 2023 14:12:45 +0800 Subject: [PATCH] [MOD] remove deprecated code --- web/lib/litegraph.core.js | 6 ------ web/scripts/app.js | 9 --------- 2 files changed, 15 deletions(-) diff --git a/web/lib/litegraph.core.js b/web/lib/litegraph.core.js index 4c63a9b2d..b76490199 100644 --- a/web/lib/litegraph.core.js +++ b/web/lib/litegraph.core.js @@ -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; diff --git a/web/scripts/app.js b/web/scripts/app.js index 1e3f8e712..abc327558 100644 --- a/web/scripts/app.js +++ b/web/scripts/app.js @@ -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)) {