1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Remove unused oldDepth from Delay node

This commit is contained in:
Nick O'Leary 2017-07-03 21:27:45 +01:00
parent 18615640e0
commit 92654a71fb
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -121,7 +121,6 @@ module.exports = function(RED) {
node.on("close", function() { clearDelayList(); }); node.on("close", function() { clearDelayList(); });
} }
else if (node.pauseType === "rate") { else if (node.pauseType === "rate") {
var olddepth = 0;
node.reportDepth = function() { node.reportDepth = function() {
if (!node.busy) { if (!node.busy) {
node.busy = setTimeout(function() { node.busy = setTimeout(function() {
@ -148,7 +147,6 @@ module.exports = function(RED) {
if (node.buffer.length === 0) { if (node.buffer.length === 0) {
clearInterval(node.intervalID); clearInterval(node.intervalID);
node.intervalID = -1; node.intervalID = -1;
olddepth = 0;
} }
if (node.buffer.length > 0) { if (node.buffer.length > 0) {
node.send(node.buffer.shift()); node.send(node.buffer.shift());