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:
parent
f262348497
commit
c48c74f173
@ -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;
|
||||
|
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user