diff options
Diffstat (limited to 'app/scripts/metamask-controller.js')
-rw-r--r-- | app/scripts/metamask-controller.js | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/app/scripts/metamask-controller.js b/app/scripts/metamask-controller.js index 33c51dc07..29b13dc62 100644 --- a/app/scripts/metamask-controller.js +++ b/app/scripts/metamask-controller.js @@ -107,8 +107,6 @@ module.exports = class MetamaskController extends EventEmitter { this.messageManager = new MessageManager() this.publicConfigStore = this.initPublicConfigStore() - this.checkTOSChange() - // TEMPORARY UNTIL FULL DEPRECATION: this.idStoreMigrator = new IdStoreMigrator({ configManager: this.configManager, @@ -220,7 +218,6 @@ module.exports = class MetamaskController extends EventEmitter { this.shapeshiftController.store.getState(), { lostAccounts: this.configManager.getLostAccounts(), - isDisclaimerConfirmed: this.configManager.getConfirmedDisclaimer(), seedWords: this.configManager.getSeedWords(), } ) @@ -243,11 +240,7 @@ module.exports = class MetamaskController extends EventEmitter { setRpcTarget: this.setRpcTarget.bind(this), setProviderType: this.setProviderType.bind(this), useEtherscanProvider: this.useEtherscanProvider.bind(this), - agreeToDisclaimer: this.agreeToDisclaimer.bind(this), - resetDisclaimer: this.resetDisclaimer.bind(this), setCurrentCurrency: this.setCurrentCurrency.bind(this), - setTOSHash: this.setTOSHash.bind(this), - checkTOSChange: this.checkTOSChange.bind(this), setGasMultiplier: this.setGasMultiplier.bind(this), markAccountsFound: this.markAccountsFound.bind(this), // coinbase @@ -520,47 +513,6 @@ module.exports = class MetamaskController extends EventEmitter { } // - // disclaimer - // - - agreeToDisclaimer (cb) { - try { - this.configManager.setConfirmedDisclaimer(true) - cb() - } catch (err) { - cb(err) - } - } - - resetDisclaimer () { - try { - this.configManager.setConfirmedDisclaimer(false) - } catch (e) { - console.error(e) - } - } - - setTOSHash (hash) { - try { - this.configManager.setTOSHash(hash) - } catch (err) { - console.error('Error in setting terms of service hash.') - } - } - - checkTOSChange () { - try { - const storedHash = this.configManager.getTOSHash() || 0 - if (storedHash !== global.TOS_HASH) { - this.resetDisclaimer() - this.setTOSHash(global.TOS_HASH) - } - } catch (err) { - console.error('Error in checking TOS change.') - } - } - - // // config // |