aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2018-05-03 09:23:55 +0800
committerkumavis <aaron@kumavis.me>2018-05-03 09:23:55 +0800
commita1d13d45cf7451162b071e5507f1e31b12574e6e (patch)
tree0ee394e7d6e07cef4dc1c2f62f5c58b18922b034 /ui
parentd2aa36f866ae25b2facb90583d552097a80d42b3 (diff)
downloadtangerine-wallet-browser-a1d13d45cf7451162b071e5507f1e31b12574e6e.tar
tangerine-wallet-browser-a1d13d45cf7451162b071e5507f1e31b12574e6e.tar.gz
tangerine-wallet-browser-a1d13d45cf7451162b071e5507f1e31b12574e6e.tar.bz2
tangerine-wallet-browser-a1d13d45cf7451162b071e5507f1e31b12574e6e.tar.lz
tangerine-wallet-browser-a1d13d45cf7451162b071e5507f1e31b12574e6e.tar.xz
tangerine-wallet-browser-a1d13d45cf7451162b071e5507f1e31b12574e6e.tar.zst
tangerine-wallet-browser-a1d13d45cf7451162b071e5507f1e31b12574e6e.zip
lint - cleanup some unused variables
Diffstat (limited to 'ui')
-rw-r--r--ui/app/components/pages/settings/settings.js1
-rw-r--r--ui/app/components/pages/unlock.js1
-rw-r--r--ui/app/first-time/init-menu.js1
-rw-r--r--ui/app/select-app.js1
-rw-r--r--ui/app/unlock.js1
-rw-r--r--ui/index.js8
6 files changed, 0 insertions, 13 deletions
diff --git a/ui/app/components/pages/settings/settings.js b/ui/app/components/pages/settings/settings.js
index e5725c0ca..f58ac7ddf 100644
--- a/ui/app/components/pages/settings/settings.js
+++ b/ui/app/components/pages/settings/settings.js
@@ -12,7 +12,6 @@ const SimpleDropdown = require('../../dropdowns/simple-dropdown')
const ToggleButton = require('react-toggle-button')
const { REVEAL_SEED_ROUTE } = require('../../../routes')
const locales = require('../../../../../app/_locales/index.json')
-const { OLD_UI_NETWORK_TYPE } = require('../../../../../app/scripts/controllers/network/enums')
const getInfuraCurrencyOptions = () => {
const sortedCurrencies = infuraCurrencies.objects.sort((a, b) => {
diff --git a/ui/app/components/pages/unlock.js b/ui/app/components/pages/unlock.js
index bbdb17306..ac541dad7 100644
--- a/ui/app/components/pages/unlock.js
+++ b/ui/app/components/pages/unlock.js
@@ -15,7 +15,6 @@ const { getEnvironmentType } = require('../../../../app/scripts/lib/util')
const getCaretCoordinates = require('textarea-caret')
const EventEmitter = require('events').EventEmitter
const Mascot = require('../mascot')
-const { OLD_UI_NETWORK_TYPE } = require('../../../../app/scripts/controllers/network/enums')
const { DEFAULT_ROUTE, RESTORE_VAULT_ROUTE } = require('../../routes')
class UnlockScreen extends Component {
diff --git a/ui/app/first-time/init-menu.js b/ui/app/first-time/init-menu.js
index 7b02d7fd6..c20ba2d77 100644
--- a/ui/app/first-time/init-menu.js
+++ b/ui/app/first-time/init-menu.js
@@ -10,7 +10,6 @@ const getCaretCoordinates = require('textarea-caret')
const { RESTORE_VAULT_ROUTE, DEFAULT_ROUTE } = require('../routes')
const { getEnvironmentType } = require('../../../app/scripts/lib/util')
const { ENVIRONMENT_TYPE_POPUP } = require('../../../app/scripts/lib/enums')
-const { OLD_UI_NETWORK_TYPE } = require('../../../app/scripts/controllers/network/enums')
class InitializeMenuScreen extends Component {
constructor (props) {
diff --git a/ui/app/select-app.js b/ui/app/select-app.js
index 6611fea09..f2e8e8d10 100644
--- a/ui/app/select-app.js
+++ b/ui/app/select-app.js
@@ -7,7 +7,6 @@ const App = require('./app')
const OldApp = require('../../old-ui/app/app')
const { autoAddToBetaUI } = require('./selectors')
const { setFeatureFlag } = require('./actions')
-const { BETA_UI_NETWORK_TYPE } = require('../../app/scripts/controllers/network/enums')
const I18nProvider = require('./i18n-provider')
function mapStateToProps (state) {
diff --git a/ui/app/unlock.js b/ui/app/unlock.js
index bcc24c3b0..d7983654e 100644
--- a/ui/app/unlock.js
+++ b/ui/app/unlock.js
@@ -6,7 +6,6 @@ const connect = require('react-redux').connect
const actions = require('./actions')
const getCaretCoordinates = require('textarea-caret')
const EventEmitter = require('events').EventEmitter
-const { OLD_UI_NETWORK_TYPE } = require('../../app/scripts/controllers/network/enums')
const { getEnvironmentType } = require('../../app/scripts/lib/util')
const { ENVIRONMENT_TYPE_POPUP } = require('../../app/scripts/lib/enums')
diff --git a/ui/index.js b/ui/index.js
index d7cedd12d..bd9ecc28b 100644
--- a/ui/index.js
+++ b/ui/index.js
@@ -5,11 +5,6 @@ const actions = require('./app/actions')
const configureStore = require('./app/store')
const txHelper = require('./lib/tx-helper')
const { fetchLocale } = require('./i18n-helper')
-const {
- OLD_UI_NETWORK_TYPE,
- BETA_UI_NETWORK_TYPE,
-} = require('../app/scripts/controllers/network/enums')
-
const log = require('loglevel')
module.exports = launchMetamaskUi
@@ -55,9 +50,6 @@ async function startApp (metamaskState, accountManager, opts) {
networkVersion: opts.networkVersion,
})
- const useBetaUi = metamaskState.featureFlags.betaUI
- const networkEndpointType = useBetaUi ? BETA_UI_NETWORK_TYPE : OLD_UI_NETWORK_TYPE
-
// if unconfirmed txs, start on txConf page
const unapprovedTxsAll = txHelper(metamaskState.unapprovedTxs, metamaskState.unapprovedMsgs, metamaskState.unapprovedPersonalMsgs, metamaskState.unapprovedTypedMessages, metamaskState.network)
const numberOfUnapprivedTx = unapprovedTxsAll.length