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

View File

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