Skip to content

Commit

Permalink
fix unreachable switch default
Browse files Browse the repository at this point in the history
  • Loading branch information
navaronbracke-endare committed Jan 29, 2025
1 parent 36425c7 commit ae4674b
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 8 deletions.
2 changes: 0 additions & 2 deletions lib/src/file_picker_macos.dart
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,6 @@ class FilePickerMacOS extends FilePicker {
return '"avi", "flv", "m4v", "mkv", "mov", "mp4", "mpeg", "webm", "wmv", "bmp", "gif", "jpeg", "jpg", "png"';
case FileType.video:
return '"avi", "flv", "mkv", "mov", "mp4", "m4v", "mpeg", "webm", "wmv"';
default:
throw Exception('unknown file type');
}
}

Expand Down
2 changes: 0 additions & 2 deletions lib/src/linux/kdialog_handler.dart
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,6 @@ class KDialogHandler implements DialogHandler {
return 'Media File (${DialogHandler.toCaseInsensitive("*.avi *.flv *.mkv *.mov *.mp4 *.mpeg *.webm *.wmv *.bmp *.gif *.jpeg *.jpg *.png")})';
case FileType.video:
return 'Video File (${DialogHandler.toCaseInsensitive("*.avi *.flv *.mkv *.mov *.mp4 *.mpeg *.webm *.wmv")})';
default:
throw Exception('unknown file type');
}
}

Expand Down
2 changes: 0 additions & 2 deletions lib/src/linux/qarma_and_zenity_handler.dart
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@ class QarmaAndZenityHandler implements DialogHandler {
return "Media Files | ${DialogHandler.toCaseInsensitive('*.avi *.flv *.mkv *.mov *.mp4 *.mpeg *.webm *.wmv *.bmp *.gif *.jpeg *.jpg *.png')}";
case FileType.video:
return "Video Files | ${DialogHandler.toCaseInsensitive('*.avi *.flv *.mkv *.mov *.mp4 *.mpeg *.webm *.wmv')}";
default:
throw Exception('unknown file type');
}
}

Expand Down
2 changes: 0 additions & 2 deletions lib/src/windows/file_picker_windows.dart
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,6 @@ class FilePickerWindows extends FilePicker {
return 'Videos (*.avi,*.flv,*.mkv,*.mov,*.mp4,*.mpeg,*.webm,*.wmv)\x00*.avi;*.flv;*.mkv;*.mov;*.mp4;*.mpeg;*.webm;*.wmv\x00Images (*.bmp,*.gif,*.jpeg,*.jpg,*.png)\x00*.bmp;*.gif;*.jpeg;*.jpg;*.png\x00\x00';
case FileType.video:
return 'Videos (*.avi,*.flv,*.mkv,*.mov,*.mp4,*.mpeg,*.webm,*.wmv)\x00*.avi;*.flv;*.mkv;*.mov;*.mp4;*.mpeg;*.webm;*.wmv\x00\x00';
default:
throw Exception('unknown file type');
}
}

Expand Down

0 comments on commit ae4674b

Please sign in to comment.