0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-29 17:42:38 +00:00

Remove obsolete function

This commit is contained in:
G.Ambatte
2024-10-10 08:34:15 +13:00
parent dc66d36b2d
commit 8db12739d3

View File

@@ -58,13 +58,6 @@ async function createHBStore(){
return await IDB.createStore(HB_DB, HB_STORE);
}
// Determine if history data exists for this brew
export async function historyCheck(brew){
const keys = await IDB.keys(await createHBStore())
.catch(()=>{return false;});
return keys.some((key)=>{return key.startsWith(`${HISTORY_PREFIX}-${brew.shareId}`);});
}
export async function loadHistory(brew){
const DEFAULT_HISTORY_ITEM = { expireAt: '2000-01-01T00:00:00.000Z', shareId: brew.shareId, noData: true };