mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 09:57:02 +01:00
Remove useless and buggy clearWallet function
This commit is contained in:
parent
6fef01c8a1
commit
78f2794d39
@ -149,8 +149,6 @@ ConfigManager.prototype.getCurrentRpcAddress = function () {
|
||||
}
|
||||
}
|
||||
|
||||
ConfigManager.prototype.clearWallet = function () {}
|
||||
|
||||
ConfigManager.prototype.setData = function (data) {
|
||||
this.migrator.saveData(data)
|
||||
}
|
||||
|
@ -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)
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user