@@ -27,18 +27,14 @@ import Constants from './constants';
27
27
import Environment from './environment' ;
28
28
import ErrorUtils from './error-utils' ;
29
29
import FormPrefill from '../models/form-prefill' ;
30
- import FxaClient from './fxa-client' ;
31
30
import HeightObserver from './height-observer' ;
32
31
import IframeChannel from './channels/iframe' ;
33
32
import InterTabChannel from './channels/inter-tab' ;
34
- import MarketingEmailClient from './marketing-email-client' ;
35
33
import Metrics from './metrics' ;
36
34
import Notifier from './channels/notifier' ;
37
35
import NullChannel from './channels/null' ;
38
- import OAuthClient from './oauth-client' ;
39
36
import OAuthRelier from '../models/reliers/oauth' ;
40
37
import p from './promise' ;
41
- import ProfileClient from './profile-client' ;
42
38
import RefreshObserver from '../models/refresh-observer' ;
43
39
import Relier from '../models/reliers/relier' ;
44
40
import Router from './router' ;
@@ -95,8 +91,7 @@ Start.prototype = {
95
91
96
92
initializeExperimentGroupingRules ( ) {
97
93
this . _experimentGroupingRules = new ExperimentGroupingRules ( {
98
- env : this . _config . env ,
99
- featureFlags : this . _config . featureFlags
94
+ env : this . _config . env
100
95
} ) ;
101
96
} ,
102
97
@@ -108,15 +103,11 @@ Start.prototype = {
108
103
. then ( ( ) => this . initializeInterTabChannel ( ) )
109
104
. then ( ( ) => this . initializeExperimentGroupingRules ( ) )
110
105
. then ( ( ) => this . initializeErrorMetrics ( ) )
111
- . then ( ( ) => this . initializeOAuthClient ( ) )
112
106
// both the metrics and router depend on the language
113
107
// fetched from config.
114
108
. then ( ( ) => this . initializeRelier ( ) )
115
109
// iframe channel depends on the relier.
116
110
. then ( ( ) => this . initializeIframeChannel ( ) )
117
- // fxaClient depends on the relier and
118
- // inter tab communication.
119
- . then ( ( ) => this . initializeFxaClient ( ) )
120
111
// depends on nothing
121
112
. then ( ( ) => this . initializeNotificationChannel ( ) )
122
113
// depends on iframeChannel and interTabChannel, web channel
@@ -125,10 +116,6 @@ Start.prototype = {
125
116
. then ( ( ) => this . initializeMetrics ( ) )
126
117
// assertionLibrary depends on fxaClient
127
118
. then ( ( ) => this . initializeAssertionLibrary ( ) )
128
- // profileClient depends on fxaClient and assertionLibrary
129
- . then ( ( ) => this . initializeProfileClient ( ) )
130
- // marketingEmailClient depends on config
131
- . then ( ( ) => this . initializeMarketingEmailClient ( ) )
132
119
// broker relies on the relier, fxaClient,
133
120
// assertionLibrary, and metrics
134
121
. then ( ( ) => this . initializeAuthenticationBroker ( ) )
@@ -229,25 +216,6 @@ Start.prototype = {
229
216
this . _formPrefill = new FormPrefill ( ) ;
230
217
} ,
231
218
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
-
251
219
initializeRelier ( ) {
252
220
if ( ! this . _relier ) {
253
221
let relier ;
@@ -381,15 +349,6 @@ Start.prototype = {
381
349
}
382
350
} ,
383
351
384
- initializeFxaClient ( ) {
385
- if ( ! this . _fxaClient ) {
386
- this . _fxaClient = new FxaClient ( {
387
- authServerUrl : this . _config . authServerUrl ,
388
- interTabChannel : this . _interTabChannel
389
- } ) ;
390
- }
391
- } ,
392
-
393
352
initializeUser ( ) {
394
353
if ( ! this . _user ) {
395
354
const user = this . _user = new User ( {
0 commit comments