aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2018-05-01 07:36:17 +0800
committerkumavis <aaron@kumavis.me>2018-05-01 07:36:17 +0800
commit6f316ca450967c161e7f231127a76494bace40a8 (patch)
tree548b6b5907cb1bb32821eeea48f1f7099a76a527 /app
parentbfedd2776d1fa668259488a5216c533b4e959fb0 (diff)
downloadtangerine-wallet-browser-6f316ca450967c161e7f231127a76494bace40a8.tar
tangerine-wallet-browser-6f316ca450967c161e7f231127a76494bace40a8.tar.gz
tangerine-wallet-browser-6f316ca450967c161e7f231127a76494bace40a8.tar.bz2
tangerine-wallet-browser-6f316ca450967c161e7f231127a76494bace40a8.tar.lz
tangerine-wallet-browser-6f316ca450967c161e7f231127a76494bace40a8.tar.xz
tangerine-wallet-browser-6f316ca450967c161e7f231127a76494bace40a8.tar.zst
tangerine-wallet-browser-6f316ca450967c161e7f231127a76494bace40a8.zip
network - remove setNetworkEndpoints
Diffstat (limited to 'app')
-rw-r--r--app/scripts/controllers/network/network.js13
-rw-r--r--app/scripts/metamask-controller.js1
2 files changed, 0 insertions, 14 deletions
diff --git a/app/scripts/controllers/network/network.js b/app/scripts/controllers/network/network.js
index 3e4bfa020..37a5e69a0 100644
--- a/app/scripts/controllers/network/network.js
+++ b/app/scripts/controllers/network/network.js
@@ -38,19 +38,6 @@ module.exports = class NetworkController extends EventEmitter {
this.on('networkDidChange', this.lookupNetwork)
}
- async setNetworkEndpoints (version) {
- if (version === this._networkEndpointVersion) {
- return
- }
-
- this._networkEndpointVersion = version
- this._networkEndpoints = getNetworkEndpoints(version)
- this._defaultRpc = this._networkEndpoints[DEFAULT_NETWORK]
- const { type } = this.getProviderConfig()
-
- return this.setProviderType(type, true)
- }
-
initializeProvider (_providerParams) {
this._baseProviderParams = _providerParams
const { type, rpcTarget } = this.providerStore.getState()
diff --git a/app/scripts/metamask-controller.js b/app/scripts/metamask-controller.js
index c4a73d8ea..67d257fea 100644
--- a/app/scripts/metamask-controller.js
+++ b/app/scripts/metamask-controller.js
@@ -355,7 +355,6 @@ module.exports = class MetamaskController extends EventEmitter {
submitPassword: nodeify(keyringController.submitPassword, keyringController),
// network management
- setNetworkEndpoints: nodeify(networkController.setNetworkEndpoints, networkController),
setProviderType: nodeify(networkController.setProviderType, networkController),
setCustomRpc: nodeify(this.setCustomRpc, this),