From fd04b5851b5f3206e23304b33f354a070f1b92d9 Mon Sep 17 00:00:00 2001 From: Mark Hindess Date: Mon, 8 Sep 2014 21:53:15 +0100 Subject: [PATCH] Remove unused variables. --- nodes/core/core/58-debug.js | 1 - nodes/core/core/80-function.js | 2 -- nodes/core/core/80-template.js | 1 - nodes/core/hardware/36-rpi-gpio.js | 2 -- nodes/core/storage/28-tail.js | 1 - 5 files changed, 7 deletions(-) diff --git a/nodes/core/core/58-debug.js b/nodes/core/core/58-debug.js index 2c7b2b279..7436bf2cb 100644 --- a/nodes/core/core/58-debug.js +++ b/nodes/core/core/58-debug.js @@ -16,7 +16,6 @@ module.exports = function(RED) { var util = require("util"); - var ws = require("ws"); var events = require("events"); var debuglength = RED.settings.debugMaxLength||1000; var useColors = false; diff --git a/nodes/core/core/80-function.js b/nodes/core/core/80-function.js index 223e6a60b..e1413a7a9 100644 --- a/nodes/core/core/80-function.js +++ b/nodes/core/core/80-function.js @@ -18,8 +18,6 @@ module.exports = function(RED) { "use strict"; var util = require("util"); var vm = require("vm"); - var fs = require('fs'); - var fspath = require('path'); function FunctionNode(n) { RED.nodes.createNode(this,n); diff --git a/nodes/core/core/80-template.js b/nodes/core/core/80-template.js index 9c818dcec..7c84142d2 100644 --- a/nodes/core/core/80-template.js +++ b/nodes/core/core/80-template.js @@ -17,7 +17,6 @@ module.exports = function(RED) { "use strict"; var mustache = require("mustache"); - var fs = require('fs'); function TemplateNode(n) { RED.nodes.createNode(this,n); diff --git a/nodes/core/hardware/36-rpi-gpio.js b/nodes/core/hardware/36-rpi-gpio.js index a22a12957..93cbc4e00 100644 --- a/nodes/core/hardware/36-rpi-gpio.js +++ b/nodes/core/hardware/36-rpi-gpio.js @@ -179,9 +179,7 @@ module.exports = function(RED) { RED.nodes.registerType("rpi-gpio in",GPIOInNode); RED.nodes.registerType("rpi-gpio out",GPIOOutNode); - var querystring = require('querystring'); RED.httpAdmin.get('/rpi-gpio/:id',function(req,res) { - var credentials = RED.nodes.getCredentials(req.params.id); res.send( JSON.stringify(pitype) ); }); } diff --git a/nodes/core/storage/28-tail.js b/nodes/core/storage/28-tail.js index c986fd8fd..89c7a6399 100644 --- a/nodes/core/storage/28-tail.js +++ b/nodes/core/storage/28-tail.js @@ -16,7 +16,6 @@ module.exports = function(RED) { "use strict"; - var fs = require("fs"); var spawn = require('child_process').spawn; var plat = require('os').platform();