refactor: remove redundant comments and fix setMetadataSource bug

- Fix setMetadataSource always returning 'deezer' regardless of input parameter
- Remove self-evident doc comments that restate method/class names across
  app_theme, dynamic_color_wrapper, cover_cache_manager, history_database,
  library_database, and download_service_picker
- Remove stale migration inline notes (// 12 -> 16, // 20 -> 16, etc.) from app_theme
- Remove trivial section-label comments in queue_tab batch conversion method
- Remove duplicate 'wait up to 5 seconds' comment in main_shell
This commit is contained in:
zarzet
2026-03-18 01:12:16 +07:00
parent 75db2f162b
commit eb143a41fc
9 changed files with 14 additions and 50 deletions
-5
View File
@@ -5082,7 +5082,6 @@ class _QueueTabState extends ConsumerState<QueueTab> {
);
try {
// Read metadata from file
final metadata = <String, String>{
'TITLE': item.trackName,
'ARTIST': item.artistName,
@@ -5111,7 +5110,6 @@ class _QueueTabState extends ConsumerState<QueueTab> {
1000,
);
// Extract cover art
String? coverPath;
try {
final tempDir = await getTemporaryDirectory();
@@ -5126,7 +5124,6 @@ class _QueueTabState extends ConsumerState<QueueTab> {
}
} catch (_) {}
// Handle SAF vs regular file
String workingPath = item.filePath;
final isSaf = isContentUri(item.filePath);
String? safTempPath;
@@ -5139,7 +5136,6 @@ class _QueueTabState extends ConsumerState<QueueTab> {
workingPath = safTempPath;
}
// Convert
final newPath = await FFmpegService.convertAudioFormat(
inputPath: workingPath,
targetFormat: targetFormat.toLowerCase(),
@@ -5149,7 +5145,6 @@ class _QueueTabState extends ConsumerState<QueueTab> {
deleteOriginal: !isSaf,
);
// Cleanup cover temp
if (coverPath != null) {
try {
await File(coverPath).delete();