aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/metamask-controller.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/scripts/metamask-controller.js')
-rw-r--r--app/scripts/metamask-controller.js18
1 files changed, 0 insertions, 18 deletions
diff --git a/app/scripts/metamask-controller.js b/app/scripts/metamask-controller.js
index f67d4edf8..c6be4b9d2 100644
--- a/app/scripts/metamask-controller.js
+++ b/app/scripts/metamask-controller.js
@@ -380,9 +380,6 @@ module.exports = class MetamaskController extends EventEmitter {
// TREZOR
unlockTrezorAccount: nodeify(this.unlockTrezorAccount, this),
- // QR code scanner
- scanQrCode: nodeify(this.scanQrCode, this),
-
// vault management
submitPassword: nodeify(this.submitPassword, this),
@@ -658,21 +655,6 @@ module.exports = class MetamaskController extends EventEmitter {
return { ...keyState, identities }
}
- scanQrCode () {
- return new Promise((resolve, reject) => {
- // Tell contentscript to inject the QR reader
- this.platform.sendMessageToActiveTab('qr-code-scanner-init')
- // Wait for the scanner to send something back
- this.platform.addMessageListener(({ action, data }) => {
- if (action && action === 'qr-code-scanner-data') {
- const normalizedAddress = data.replace('ethereum:', '')
- resolve(normalizedAddress)
- }
- })
- })
- }
-
-
//
// Account Management
//