aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/metamask-controller.js
diff options
context:
space:
mode:
authorKevin Serrano <kevgagser@gmail.com>2017-02-10 10:17:50 +0800
committerKevin Serrano <kevgagser@gmail.com>2017-02-10 10:17:50 +0800
commit65c84ac4b2a8a4355bff63690d34e52a4a45a561 (patch)
tree69c02a96a370d8444655d0b6b72899ec69d07dfe /app/scripts/metamask-controller.js
parent1d0fcf129c8bd7174aecccca3acf54ee83215d19 (diff)
downloadtangerine-wallet-browser-65c84ac4b2a8a4355bff63690d34e52a4a45a561.tar
tangerine-wallet-browser-65c84ac4b2a8a4355bff63690d34e52a4a45a561.tar.gz
tangerine-wallet-browser-65c84ac4b2a8a4355bff63690d34e52a4a45a561.tar.bz2
tangerine-wallet-browser-65c84ac4b2a8a4355bff63690d34e52a4a45a561.tar.lz
tangerine-wallet-browser-65c84ac4b2a8a4355bff63690d34e52a4a45a561.tar.xz
tangerine-wallet-browser-65c84ac4b2a8a4355bff63690d34e52a4a45a561.tar.zst
tangerine-wallet-browser-65c84ac4b2a8a4355bff63690d34e52a4a45a561.zip
Delete all code related to disclaimers.
Diffstat (limited to 'app/scripts/metamask-controller.js')
-rw-r--r--app/scripts/metamask-controller.js48
1 files changed, 0 insertions, 48 deletions
diff --git a/app/scripts/metamask-controller.js b/app/scripts/metamask-controller.js
index fb2040c63..6830bd947 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,
@@ -219,7 +217,6 @@ module.exports = class MetamaskController extends EventEmitter {
this.shapeshiftController.store.getState(),
{
lostAccounts: this.configManager.getLostAccounts(),
- isDisclaimerConfirmed: this.configManager.getConfirmedDisclaimer(),
seedWords: this.configManager.getSeedWords(),
}
)
@@ -242,11 +239,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
@@ -519,47 +512,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
//