From 92654a71fb530e204407ef7bd7bfa18243fd1e5a Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Mon, 3 Jul 2017 21:27:45 +0100 Subject: [PATCH] Remove unused oldDepth from Delay node --- nodes/core/core/89-delay.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/nodes/core/core/89-delay.js b/nodes/core/core/89-delay.js index 619180bf4..299a2ed7c 100644 --- a/nodes/core/core/89-delay.js +++ b/nodes/core/core/89-delay.js @@ -121,7 +121,6 @@ module.exports = function(RED) { node.on("close", function() { clearDelayList(); }); } else if (node.pauseType === "rate") { - var olddepth = 0; node.reportDepth = function() { if (!node.busy) { node.busy = setTimeout(function() { @@ -148,7 +147,6 @@ module.exports = function(RED) { if (node.buffer.length === 0) { clearInterval(node.intervalID); node.intervalID = -1; - olddepth = 0; } if (node.buffer.length > 0) { node.send(node.buffer.shift());