From c48c74f173af65163d4a6397abca4e0e188b3912 Mon Sep 17 00:00:00 2001 From: HirokiUchikawa Date: Thu, 31 May 2018 09:46:54 +0900 Subject: [PATCH] Delete unused variables --- red/runtime/nodes/context/index.js | 3 --- red/runtime/nodes/context/localfilesystem.js | 1 - 2 files changed, 4 deletions(-) diff --git a/red/runtime/nodes/context/index.js b/red/runtime/nodes/context/index.js index 4a3f6c3d5..d1bf32be3 100644 --- a/red/runtime/nodes/context/index.js +++ b/red/runtime/nodes/context/index.js @@ -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; diff --git a/red/runtime/nodes/context/localfilesystem.js b/red/runtime/nodes/context/localfilesystem.js index 2cffe7d96..60098cc91 100644 --- a/red/runtime/nodes/context/localfilesystem.js +++ b/red/runtime/nodes/context/localfilesystem.js @@ -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];