@@ -55,7 +55,6 @@ Future<Widget> bootstrap(
55
55
56
56
DataClient <Headline > headlinesClient;
57
57
DataClient <Topic > topicsClient;
58
- DataClient <Country > countriesClient;
59
58
DataClient <Source > sourcesClient;
60
59
DataClient <UserContentPreferences > userContentPreferencesClient;
61
60
DataClient <UserAppSettings > userAppSettingsClient;
@@ -75,12 +74,6 @@ Future<Widget> bootstrap(
75
74
initialData: topicsFixturesData,
76
75
logger: Logger ('DataInMemory<Topic>' ),
77
76
);
78
- countriesClient = DataInMemory <Country >(
79
- toJson: (i) => i.toJson (),
80
- getId: (i) => i.id,
81
- initialData: countriesFixturesData,
82
- logger: Logger ('DataInMemory<Country>' ),
83
- );
84
77
sourcesClient = DataInMemory <Source >(
85
78
toJson: (i) => i.toJson (),
86
79
getId: (i) => i.id,
@@ -124,13 +117,6 @@ Future<Widget> bootstrap(
124
117
toJson: (topic) => topic.toJson (),
125
118
logger: Logger ('DataApi<Topic>' ),
126
119
);
127
- countriesClient = DataApi <Country >(
128
- httpClient: httpClient,
129
- modelName: 'country' ,
130
- fromJson: Country .fromJson,
131
- toJson: (country) => country.toJson (),
132
- logger: Logger ('DataApi<Country>' ),
133
- );
134
120
sourcesClient = DataApi <Source >(
135
121
httpClient: httpClient,
136
122
modelName: 'source' ,
@@ -181,13 +167,6 @@ Future<Widget> bootstrap(
181
167
toJson: (topic) => topic.toJson (),
182
168
logger: Logger ('DataApi<Topic>' ),
183
169
);
184
- countriesClient = DataApi <Country >(
185
- httpClient: httpClient,
186
- modelName: 'country' ,
187
- fromJson: Country .fromJson,
188
- toJson: (country) => country.toJson (),
189
- logger: Logger ('DataApi<Country>' ),
190
- );
191
170
sourcesClient = DataApi <Source >(
192
171
httpClient: httpClient,
193
172
modelName: 'source' ,
@@ -229,9 +208,6 @@ Future<Widget> bootstrap(
229
208
dataClient: headlinesClient,
230
209
);
231
210
final topicsRepository = DataRepository <Topic >(dataClient: topicsClient);
232
- final countriesRepository = DataRepository <Country >(
233
- dataClient: countriesClient,
234
- );
235
211
final sourcesRepository = DataRepository <Source >(dataClient: sourcesClient);
236
212
final userContentPreferencesRepository =
237
213
DataRepository <UserContentPreferences >(
@@ -251,7 +227,6 @@ Future<Widget> bootstrap(
251
227
authenticationRepository: authenticationRepository,
252
228
headlinesRepository: headlinesRepository,
253
229
topicsRepository: topicsRepository,
254
- countriesRepository: countriesRepository,
255
230
sourcesRepository: sourcesRepository,
256
231
userAppSettingsRepository: userAppSettingsRepository,
257
232
userContentPreferencesRepository: userContentPreferencesRepository,
0 commit comments