From 2bcc4cac6ab55d998ead2041ac6fefe211ab57d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5kon=20L=C3=B8vdal?= Date: Sun, 17 Sep 2023 18:16:33 +0200 Subject: [PATCH] Remove unused function Usage was removed in commit da0ce9fe (Simplify flow api implementation and add logging messages) in 2015. --- .../@node-red/runtime/lib/flows/index.js | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/packages/node_modules/@node-red/runtime/lib/flows/index.js b/packages/node_modules/@node-red/runtime/lib/flows/index.js index fa6649263..7ee79d337 100644 --- a/packages/node_modules/@node-red/runtime/lib/flows/index.js +++ b/packages/node_modules/@node-red/runtime/lib/flows/index.js @@ -535,25 +535,6 @@ function checkTypeInUse(id) { } } -function updateMissingTypes() { - var subflowInstanceRE = /^subflow:(.+)$/; - activeFlowConfig.missingTypes = []; - - for (var id in activeFlowConfig.allNodes) { - if (activeFlowConfig.allNodes.hasOwnProperty(id)) { - var node = activeFlowConfig.allNodes[id]; - if (node.type !== 'tab' && node.type !== 'subflow') { - var subflowDetails = subflowInstanceRE.exec(node.type); - if ( (subflowDetails && !activeFlowConfig.subflows[subflowDetails[1]]) || (!subflowDetails && !typeRegistry.get(node.type)) ) { - if (activeFlowConfig.missingTypes.indexOf(node.type) === -1) { - activeFlowConfig.missingTypes.push(node.type); - } - } - } - } - } -} - async function addFlow(flow, user) { var i,node; if (!flow.hasOwnProperty('nodes')) {