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

remove unused vars

This commit is contained in:
Steve-Mcl 2022-04-19 10:42:00 +01:00
parent 6f89efa40b
commit 8df53e441d

View File

@ -35,8 +35,6 @@ module.exports = function(RED) {
} }
} }
var listenerNodes = {}; var listenerNodes = {};
var activeListenerNodes = 0;
// A node red node that sets up a local websocket server // A node red node that sets up a local websocket server
function WebSocketListenerNode(n) { function WebSocketListenerNode(n) {
@ -166,7 +164,6 @@ module.exports = function(RED) {
} }
if (node.isServer) { if (node.isServer) {
activeListenerNodes++;
if (!serverUpgradeAdded) { if (!serverUpgradeAdded) {
RED.server.on('upgrade', handleServerUpgrade); RED.server.on('upgrade', handleServerUpgrade);
serverUpgradeAdded = true serverUpgradeAdded = true