فهرست منبع

Remove unused

Manav Rathi 1 سال پیش
والد
کامیت
14427b6011
1فایلهای تغییر یافته به همراه0 افزوده شده و 6 حذف شده
  1. 0 6
      web/apps/photos/src/utils/upload/index.ts

+ 0 - 6
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,