diff --git a/lib/const.dart b/lib/const.dart index cdbb3d92..df4a798e 100644 --- a/lib/const.dart +++ b/lib/const.dart @@ -150,7 +150,6 @@ class Const { static const List vowelList = ['a', 'e', 'i', 'o', 'u', 'y']; static const String oflLicenseEntryName = 'google_fonts'; static const String specialWineFestivalBoatsEvent = 'Bateaux fete du vin'; - static const String specialKingCharlesBoats = 'IRON DUKE'; static const String sentryDSNEnvKey = 'SENTRY_DSN'; static const String envKey = 'ENV'; static const String defaultEnv = 'dev'; diff --git a/lib/models/boat_forecast.dart b/lib/models/boat_forecast.dart index 411080b8..9ce25a32 100644 --- a/lib/models/boat_forecast.dart +++ b/lib/models/boat_forecast.dart @@ -1,4 +1,3 @@ -import 'package:chabo_app/const.dart'; import 'package:chabo_app/cubits/time_format_cubit.dart'; import 'package:chabo_app/extensions/boats_extension.dart'; import 'package:chabo_app/extensions/color_scheme_extension.dart'; @@ -59,10 +58,7 @@ class BoatForecast extends AbstractForecast { bool isLeaving = false; final rawBoatName = json['fields']['bateau'] as String; final boatNames = rawBoatName.split(RegExp(r'/')); - for (var boatName in boatNames) { - if (rawBoatName == Const.specialKingCharlesBoats) { - boatName = '👑 $boatName 👑'; - } + for (final boatName in boatNames) { final trimmedBoatName = boatName.trim(); isLeaving = allBoatNames.contains(trimmedBoatName); boats.add(Boat(name: trimmedBoatName, isLeaving: isLeaving));