refactor: remove unused convenience APIs

This commit is contained in:
edde746
2026-07-12 08:42:20 +02:00
parent cdec9d1514
commit 8a8b4f3a61
15 changed files with 0 additions and 118 deletions
-2
View File
@@ -45,6 +45,4 @@ class SubtitleFontLoader {
}
static String get fontName => _fontName;
static String get fontAssetPath => _fontAssetPath;
}
-13
View File
@@ -47,12 +47,6 @@ sealed class AudioTrack with _$AudioTrack {
static const off = AudioTrack(id: 'no', title: 'Off');
int? get channelsCount => channels;
String get displayName {
if (title != null && title!.isNotEmpty) return title!;
if (language != null && language!.isNotEmpty) return language!;
return 'Track $id';
}
}
@freezed
@@ -91,13 +85,6 @@ sealed class SubtitleTrack with _$SubtitleTrack {
static const auto = SubtitleTrack(id: 'auto', title: 'Auto');
static const off = SubtitleTrack(id: 'no', title: 'Off');
String get displayName {
if (title != null && title!.isNotEmpty) return title!;
if (language != null && language!.isNotEmpty) return language!;
if (isExternal) return 'External';
return 'Track $id';
}
}
@Freezed(toStringOverride: false)