From 54fb1b5302565fbee094b35718e7dc4dd6a5aa62 Mon Sep 17 00:00:00 2001 From: David Baker Date: Thu, 15 Aug 2019 12:07:59 +0100 Subject: [PATCH] Unused variables / imports --- src/components/views/settings/discovery/EmailAddresses.js | 3 --- src/components/views/settings/discovery/PhoneNumbers.js | 3 --- 2 files changed, 6 deletions(-) diff --git a/src/components/views/settings/discovery/EmailAddresses.js b/src/components/views/settings/discovery/EmailAddresses.js index dd719bec5d..4d18c1d355 100644 --- a/src/components/views/settings/discovery/EmailAddresses.js +++ b/src/components/views/settings/discovery/EmailAddresses.js @@ -22,7 +22,6 @@ import { _t } from "../../../../languageHandler"; import MatrixClientPeg from "../../../../MatrixClientPeg"; import sdk from '../../../../index'; import Modal from '../../../../Modal'; -import IdentityAuthClient from '../../../../IdentityAuthClient'; import AddThreepid from '../../../../AddThreepid'; import { getThreepidBindStatus } from '../../../../boundThreepids'; @@ -199,9 +198,7 @@ export default class EmailAddresses extends React.Component { async componentWillMount() { const client = MatrixClientPeg.get(); - const userId = client.getUserId(); - const { threepids } = await client.getThreePids(); const emails = await getThreepidBindStatus(client, 'email'); this.setState({ emails }); diff --git a/src/components/views/settings/discovery/PhoneNumbers.js b/src/components/views/settings/discovery/PhoneNumbers.js index 97ca98a235..fdebac5d22 100644 --- a/src/components/views/settings/discovery/PhoneNumbers.js +++ b/src/components/views/settings/discovery/PhoneNumbers.js @@ -22,7 +22,6 @@ import { _t } from "../../../../languageHandler"; import MatrixClientPeg from "../../../../MatrixClientPeg"; import sdk from '../../../../index'; import Modal from '../../../../Modal'; -import IdentityAuthClient from '../../../../IdentityAuthClient'; import AddThreepid from '../../../../AddThreepid'; import { getThreepidBindStatus } from '../../../../boundThreepids'; @@ -218,9 +217,7 @@ export default class PhoneNumbers extends React.Component { async componentWillMount() { const client = MatrixClientPeg.get(); - const userId = client.getUserId(); - const { threepids } = await client.getThreePids(); const msisdns = await getThreepidBindStatus(client, 'msisdn'); this.setState({ msisdns });