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