@@ -27,18 +27,14 @@ import Constants from './constants';
2727import Environment from './environment' ;
2828import ErrorUtils from './error-utils' ;
2929import FormPrefill from '../models/form-prefill' ;
30- import FxaClient from './fxa-client' ;
3130import HeightObserver from './height-observer' ;
3231import IframeChannel from './channels/iframe' ;
3332import InterTabChannel from './channels/inter-tab' ;
34- import MarketingEmailClient from './marketing-email-client' ;
3533import Metrics from './metrics' ;
3634import Notifier from './channels/notifier' ;
3735import NullChannel from './channels/null' ;
38- import OAuthClient from './oauth-client' ;
3936import OAuthRelier from '../models/reliers/oauth' ;
4037import p from './promise' ;
41- import ProfileClient from './profile-client' ;
4238import RefreshObserver from '../models/refresh-observer' ;
4339import Relier from '../models/reliers/relier' ;
4440import Router from './router' ;
@@ -95,8 +91,7 @@ Start.prototype = {
9591
9692 initializeExperimentGroupingRules ( ) {
9793 this . _experimentGroupingRules = new ExperimentGroupingRules ( {
98- env : this . _config . env ,
99- featureFlags : this . _config . featureFlags
94+ env : this . _config . env
10095 } ) ;
10196 } ,
10297
@@ -108,15 +103,11 @@ Start.prototype = {
108103 . then ( ( ) => this . initializeInterTabChannel ( ) )
109104 . then ( ( ) => this . initializeExperimentGroupingRules ( ) )
110105 . then ( ( ) => this . initializeErrorMetrics ( ) )
111- . then ( ( ) => this . initializeOAuthClient ( ) )
112106 // both the metrics and router depend on the language
113107 // fetched from config.
114108 . then ( ( ) => this . initializeRelier ( ) )
115109 // iframe channel depends on the relier.
116110 . then ( ( ) => this . initializeIframeChannel ( ) )
117- // fxaClient depends on the relier and
118- // inter tab communication.
119- . then ( ( ) => this . initializeFxaClient ( ) )
120111 // depends on nothing
121112 . then ( ( ) => this . initializeNotificationChannel ( ) )
122113 // depends on iframeChannel and interTabChannel, web channel
@@ -125,10 +116,6 @@ Start.prototype = {
125116 . then ( ( ) => this . initializeMetrics ( ) )
126117 // assertionLibrary depends on fxaClient
127118 . then ( ( ) => this . initializeAssertionLibrary ( ) )
128- // profileClient depends on fxaClient and assertionLibrary
129- . then ( ( ) => this . initializeProfileClient ( ) )
130- // marketingEmailClient depends on config
131- . then ( ( ) => this . initializeMarketingEmailClient ( ) )
132119 // broker relies on the relier, fxaClient,
133120 // assertionLibrary, and metrics
134121 . then ( ( ) => this . initializeAuthenticationBroker ( ) )
@@ -229,25 +216,6 @@ Start.prototype = {
229216 this . _formPrefill = new FormPrefill ( ) ;
230217 } ,
231218
232- initializeOAuthClient ( ) {
233- this . _oAuthClient = new OAuthClient ( {
234- oAuthUrl : this . _config . oAuthUrl
235- } ) ;
236- } ,
237-
238- initializeProfileClient ( ) {
239- this . _profileClient = new ProfileClient ( {
240- profileUrl : this . _config . profileUrl
241- } ) ;
242- } ,
243-
244- initializeMarketingEmailClient ( ) {
245- this . _marketingEmailClient = new MarketingEmailClient ( {
246- baseUrl : this . _config . marketingEmailServerUrl ,
247- preferencesUrl : this . _config . marketingEmailPreferencesUrl
248- } ) ;
249- } ,
250-
251219 initializeRelier ( ) {
252220 if ( ! this . _relier ) {
253221 let relier ;
@@ -381,15 +349,6 @@ Start.prototype = {
381349 }
382350 } ,
383351
384- initializeFxaClient ( ) {
385- if ( ! this . _fxaClient ) {
386- this . _fxaClient = new FxaClient ( {
387- authServerUrl : this . _config . authServerUrl ,
388- interTabChannel : this . _interTabChannel
389- } ) ;
390- }
391- } ,
392-
393352 initializeUser ( ) {
394353 if ( ! this . _user ) {
395354 const user = this . _user = new User ( {
0 commit comments