From 37804ac5fecb3debb4ec47e2747907466f4d0108 Mon Sep 17 00:00:00 2001 From: yann300 Date: Tue, 11 Apr 2017 11:19:05 +0200 Subject: [PATCH] remove clear() --- src/storage/storageResolver.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/storage/storageResolver.js b/src/storage/storageResolver.js index 0d3b375b40..d26efbc36b 100644 --- a/src/storage/storageResolver.js +++ b/src/storage/storageResolver.js @@ -6,7 +6,7 @@ var util = require('../helpers/global') class StorageResolver { constructor (_traceManager) { this.traceManager = _traceManager - this.clear() + this.storageByAddress = {} } /** @@ -48,14 +48,6 @@ class StorageResolver { return this.storageByAddress[address] && this.storageByAddress[address].complete } - /** - * clear the cache - * - */ - clear () { - this.storageByAddress = {} - } - /** * resolve the storage to the specified execution step @arg index. uses the traceManager.accumulateStorageChanges *