diff options
author | Dan Finlay <dan@danfinlay.com> | 2016-07-01 02:34:34 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2016-07-01 02:34:34 +0800 |
commit | 78f2794d39ccfff79a6562d6fdc628f375291598 (patch) | |
tree | 9796c03b160b2c34582d5213d428475ae540294b | |
parent | 6fef01c8a156c70e5a6034767a7ce86506f566f3 (diff) | |
download | tangerine-wallet-browser-78f2794d39ccfff79a6562d6fdc628f375291598.tar tangerine-wallet-browser-78f2794d39ccfff79a6562d6fdc628f375291598.tar.gz tangerine-wallet-browser-78f2794d39ccfff79a6562d6fdc628f375291598.tar.bz2 tangerine-wallet-browser-78f2794d39ccfff79a6562d6fdc628f375291598.tar.lz tangerine-wallet-browser-78f2794d39ccfff79a6562d6fdc628f375291598.tar.xz tangerine-wallet-browser-78f2794d39ccfff79a6562d6fdc628f375291598.tar.zst tangerine-wallet-browser-78f2794d39ccfff79a6562d6fdc628f375291598.zip |
Remove useless and buggy clearWallet function
-rw-r--r-- | app/scripts/lib/config-manager.js | 2 | ||||
-rw-r--r-- | app/scripts/lib/idStore.js | 3 | ||||
-rw-r--r-- | test/unit/config-manager-test.js | 11 |
3 files changed, 0 insertions, 16 deletions
diff --git a/app/scripts/lib/config-manager.js b/app/scripts/lib/config-manager.js index ca115d49e..caaae8a75 100644 --- a/app/scripts/lib/config-manager.js +++ b/app/scripts/lib/config-manager.js @@ -149,8 +149,6 @@ ConfigManager.prototype.getCurrentRpcAddress = function () { } } -ConfigManager.prototype.clearWallet = function () {} - ConfigManager.prototype.setData = function (data) { this.migrator.saveData(data) } diff --git a/app/scripts/lib/idStore.js b/app/scripts/lib/idStore.js index f705c07a7..cbc8c1e48 100644 --- a/app/scripts/lib/idStore.js +++ b/app/scripts/lib/idStore.js @@ -43,9 +43,6 @@ function IdentityStore (opts = {}) { IdentityStore.prototype.createNewVault = function (password, entropy, cb) { delete this._keyStore - if (this.configManager) { - this.configManager.clearWallet() - } this._createIdmgmt(password, null, entropy, (err) => { if (err) return cb(err) diff --git a/test/unit/config-manager-test.js b/test/unit/config-manager-test.js index 69c462286..8974a6bc5 100644 --- a/test/unit/config-manager-test.js +++ b/test/unit/config-manager-test.js @@ -42,17 +42,6 @@ describe('config-manager', function() { }) }) - describe('#clearWallet', function() { - it('should not erase confirmation', function() { - configManager.setConfirmed(true) - assert.equal(configManager.getConfirmed(), true) - - configManager.clearWallet() - - assert.equal(configManager.getConfirmed(), true) - }) - }) - describe('#setConfig', function() { window.localStorage = {} // Hacking localStorage support into JSDom |