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

Delete unused variables

This commit is contained in:
HirokiUchikawa 2018-05-31 09:46:54 +09:00
parent f262348497
commit c48c74f173
2 changed files with 0 additions and 4 deletions

View File

@ -15,7 +15,6 @@
**/ **/
var clone = require("clone"); var clone = require("clone");
var util = require("../../util");
var log = require("../../log"); var log = require("../../log");
var when = require("when"); var when = require("when");
@ -163,7 +162,6 @@ function createContext(id,seed) {
return context.set(scope, keyPath.key, value); return context.set(scope, keyPath.key, value);
}; };
obj.keys = function(storage) { obj.keys = function(storage) {
//TODO: discuss about keys() behavior
var storageName = parseStorage(storage); var storageName = parseStorage(storage);
var context = getContextStorage(storageName); var context = getContextStorage(storageName);
return context.keys(scope); return context.keys(scope);
@ -192,7 +190,6 @@ function getContext(localId,flowId) {
function deleteContext(id,flowId) { function deleteContext(id,flowId) {
if(noContextStorage){ if(noContextStorage){
var promises = [];
var contextId = id; var contextId = id;
if (flowId) { if (flowId) {
contextId = id+":"+flowId; contextId = id+":"+flowId;

View File

@ -113,7 +113,6 @@ LocalFileSystem.prototype.keys = function(scope) {
LocalFileSystem.prototype.delete = function(scope){ LocalFileSystem.prototype.delete = function(scope){
var self = this; var self = this;
if(this.storages[scope]){ if(this.storages[scope]){
var promise;
this.storages[scope].delete("/"); this.storages[scope].delete("/");
return fs.remove(this.storages[scope].filename).then(function(){ return fs.remove(this.storages[scope].filename).then(function(){
delete self.storages[scope]; delete self.storages[scope];