From 3d8d6e9fac288a1dc8130c8633ced8aaf13b702c Mon Sep 17 00:00:00 2001 From: Manav Rathi Date: Sat, 4 May 2024 10:52:12 +0530 Subject: [PATCH] Remove unused remove code --- web/apps/cast/src/services/cast.ts | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/web/apps/cast/src/services/cast.ts b/web/apps/cast/src/services/cast.ts index 59b92eba85..fb19d2bfdf 100644 --- a/web/apps/cast/src/services/cast.ts +++ b/web/apps/cast/src/services/cast.ts @@ -278,34 +278,6 @@ export const getCastCollection = async ( } }; -export const removeCollection = async ( - collectionUID: string, - collectionKey: string, -) => { - const collections = - (await localForage.getItem(COLLECTIONS_TABLE)) || []; - await localForage.setItem( - COLLECTIONS_TABLE, - collections.filter((collection) => collection.key !== collectionKey), - ); - await removeCollectionFiles(collectionUID); -}; - -export const removeCollectionFiles = async (collectionUID: string) => { - await localForage.removeItem(getLastSyncKey(collectionUID)); - const collectionFiles = - (await localForage.getItem( - COLLECTION_FILES_TABLE, - )) ?? []; - await localForage.setItem( - COLLECTION_FILES_TABLE, - collectionFiles.filter( - (collectionFiles) => - collectionFiles.collectionLocalID !== collectionUID, - ), - ); -}; - export const storeCastData = (payloadObj: Object) => { // iterate through all the keys in the payload object and set them in localStorage. for (const key in payloadObj) {