Remove useless and buggy clearWallet function

This commit is contained in:
Dan Finlay 2016-06-30 11:34:34 -07:00
parent 6fef01c8a1
commit 78f2794d39
3 changed files with 0 additions and 16 deletions

View File

@ -149,8 +149,6 @@ ConfigManager.prototype.getCurrentRpcAddress = function () {
}
}
ConfigManager.prototype.clearWallet = function () {}
ConfigManager.prototype.setData = function (data) {
this.migrator.saveData(data)
}

View File

@ -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)

View File

@ -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