aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts
diff options
context:
space:
mode:
authorWhymarrh Whitby <whymarrh.whitby@gmail.com>2019-08-09 03:33:10 +0800
committerGitHub <noreply@github.com>2019-08-09 03:33:10 +0800
commitceace71bf5989eb8137d7f0617a85ccaa92dce30 (patch)
treec8daced880a88b39426703d132897675d1a0761f /app/scripts
parentd4db2c3de370f7c94ec8cba0d35fc14ef8667bd0 (diff)
downloadtangerine-wallet-browser-ceace71bf5989eb8137d7f0617a85ccaa92dce30.tar.gz
tangerine-wallet-browser-ceace71bf5989eb8137d7f0617a85ccaa92dce30.tar.zst
tangerine-wallet-browser-ceace71bf5989eb8137d7f0617a85ccaa92dce30.zip
Remove unused lostAccounts state (#6979)
Diffstat (limited to 'app/scripts')
-rw-r--r--app/scripts/background.js1
-rw-r--r--app/scripts/metamask-controller.js25
2 files changed, 0 insertions, 26 deletions
diff --git a/app/scripts/background.js b/app/scripts/background.js
index 8e65bd5a4..cb87878a9 100644
--- a/app/scripts/background.js
+++ b/app/scripts/background.js
@@ -142,7 +142,6 @@ setupMetamaskMeshMetrics()
* @property {Object} infuraNetworkStatus - An object of infura network status checks.
* @property {Block[]} recentBlocks - An array of recent blocks, used to calculate an effective but cheap gas price.
* @property {Array} shapeShiftTxList - An array of objects describing shapeshift exchange attempts.
- * @property {Array} lostAccounts - TODO: Remove this feature. A leftover from the version-3 migration where our seed-phrase library changed to fix a bug where some accounts were mis-generated, but we recovered the old accounts as "lost" instead of losing them.
* @property {boolean} forgottenPassword - Returns true if the user has initiated the password recovery screen, is recovering from seed phrase.
*/
diff --git a/app/scripts/metamask-controller.js b/app/scripts/metamask-controller.js
index d999bb790..46788aaae 100644
--- a/app/scripts/metamask-controller.js
+++ b/app/scripts/metamask-controller.js
@@ -385,10 +385,6 @@ module.exports = class MetamaskController extends EventEmitter {
return {
...{ isInitialized },
...this.memStore.getFlatState(),
- ...{
- // TODO: Remove usages of lost accounts
- lostAccounts: [],
- },
}
}
@@ -1177,27 +1173,6 @@ module.exports = class MetamaskController extends EventEmitter {
* @property string privateKey - The private key of the account.
*/
- /**
- * Probably no longer needed, related to the Version 3 migration.
- * Imports a hash of accounts to private keys into the vault.
- *
- * Described in:
- * https://medium.com/metamask/metamask-3-migration-guide-914b79533cdd
- *
- * Uses the array's private keys to create a new Simple Key Pair keychain
- * and add it to the keyring controller.
- * @deprecated
- * @param {Account[]} lostAccounts -
- * @returns {Keyring[]} An array of the restored keyrings.
- */
- importLostAccounts ({ lostAccounts }) {
- const privKeys = lostAccounts.map(acct => acct.privateKey)
- return this.keyringController.restoreKeyring({
- type: 'Simple Key Pair',
- data: privKeys,
- })
- }
-
//=============================================================================
// END (VAULT / KEYRING RELATED METHODS)
//=============================================================================