Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Remove unused

Manav Rathi14427b60116e
diff --git a/web/apps/photos/src/utils/upload/index.ts b/web/apps/photos/src/utils/upload/index.ts
index ac05122aa9..925d19b452 100644
--- a/web/apps/photos/src/utils/upload/index.ts
+++ b/web/apps/photos/src/utils/upload/index.ts
@@ -12,7 +12,6 @@ import {
} from "types/upload";
const TYPE_JSON = "json";
-const DEDUPE_COLLECTION = new Set(["icloud library", "icloudlibrary"]);
export function findMatchingExistingFiles(
existingFiles: EnteFile[],
@@ -27,11 +26,6 @@ export function findMatchingExistingFiles(
return matchingFiles;
}
-export function shouldDedupeAcrossCollection(collectionName: string): boolean {
- // using set to avoid unnecessary regex for removing spaces for each upload
- return DEDUPE_COLLECTION.has(collectionName.toLocaleLowerCase());
-}
-
export function areFilesSame(
existingFile: Metadata,
newFile: Metadata,