File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ class ExercisesProvider with ChangeNotifier {
107
107
}
108
108
109
109
// Initialize filters for exercises search in exercises list
110
- void _initFilters () {
110
+ void initFilters () {
111
111
if (_muscles.isEmpty || _equipment.isEmpty || _filters != null ) {
112
112
return ;
113
113
}
@@ -268,8 +268,6 @@ class ExercisesProvider with ChangeNotifier {
268
268
///
269
269
/// If the exercise is not known locally, it is fetched from the server.
270
270
Future <Exercise > fetchAndSetExercise (int exerciseId) async {
271
- //final database = locator<ExerciseDatabase>();
272
-
273
271
try {
274
272
final exercise = findExerciseById (exerciseId);
275
273
@@ -435,7 +433,7 @@ class ExercisesProvider with ChangeNotifier {
435
433
]);
436
434
await setExercisesFromDatabase (database);
437
435
438
- _initFilters ();
436
+ initFilters ();
439
437
notifyListeners ();
440
438
}
441
439
@@ -450,8 +448,6 @@ class ExercisesProvider with ChangeNotifier {
450
448
log ('Loaded ${exercisesDb .length } exercises from cache' );
451
449
452
450
exercises = exercisesDb.map ((e) => Exercise .fromApiDataString (e.data, _languages)).toList ();
453
-
454
- // updateExerciseCache(database);
455
451
}
456
452
457
453
/// Updates the exercise database with *all* the exercises from the server
You can’t perform that action at this time.
0 commit comments