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
1 changed files with 0 additions and 2 deletions

View File

@ -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());