remove unneeded function

This commit is contained in:
Abhinav 2022-08-30 14:30:11 +05:30
parent 913995d55b
commit cfcfbb876f

View file

@ -249,21 +249,6 @@ export async function decryptFile(file: EnteFile, collectionKey: string) {
}
}
export async function getFileKey(file: EnteFile, collectionKey: string) {
try {
const worker = await new CryptoWorker();
file.key = await worker.decryptB64(
file.encryptedKey,
file.keyDecryptionNonce,
collectionKey
);
return file.key;
} catch (e) {
logError(e, 'get file key failed');
throw e;
}
}
export const preservePhotoswipeProps =
(newFiles: EnteFile[]) =>
(currentFiles: EnteFile[]): EnteFile[] => {