π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Remove dead upload helpers
Neeraj Gupta37dc43f01c75
diff --git a/mobile/apps/photos/lib/services/local_file_update_service.dart b/mobile/apps/photos/lib/services/local_file_update_service.dartindex d947cdeb40..6dafb9387c 100644--- a/mobile/apps/photos/lib/services/local_file_update_service.dart+++ b/mobile/apps/photos/lib/services/local_file_update_service.dart@@ -222,18 +222,6 @@ class LocalFileUpdateService {return mediaUploadData;}- Future<(MediaUploadData, int)> getUploadDataWithSizeSize(- EnteFile file,- ) async {- final mediaUploadData = await getUploadDataFromEnteFile(file);- final int size = await mediaUploadData.sourceFile!.length();- // delete the file from app's internal cache if it was copied to app- // for upload. Shared Media should only be cleared when the upload- // succeeds.- await _deleteCopiedIOSUploadFile(mediaUploadData.sourceFile);- return (mediaUploadData, size);- }-Future<void> _deleteCopiedIOSUploadFile(File? sourceFile) async {if (!Platform.isIOS || sourceFile == null) {return;diff --git a/mobile/apps/photos/lib/utils/file_uploader.dart b/mobile/apps/photos/lib/utils/file_uploader.dartindex 7a1289374a..79424b8354 100644--- a/mobile/apps/photos/lib/utils/file_uploader.dart+++ b/mobile/apps/photos/lib/utils/file_uploader.dart@@ -50,7 +50,6 @@ import "package:uuid/uuid.dart";class FileUploader {static const kMaximumConcurrentUploads = 4;static const kMaximumConcurrentVideoUploads = 2;- static const kMaximumThumbnailCompressionAttempts = 2;static const kMaximumUploadAttempts = 4;static const kMaxFileSize10Gib = 10737418240;static const kBlockedUploadsPollFrequency = Duration(seconds: 2);@@ -1643,6 +1642,6 @@ class FileUploadItem {});}-enum UploadStatus { notStarted, inProgress, inBackground, completed }+enum UploadStatus { notStarted, inProgress, inBackground }enum ProcessType { background, foreground }