From 8db12739d3ea1358c5db9d772860adb81770618a Mon Sep 17 00:00:00 2001 From: "G.Ambatte" Date: Thu, 10 Oct 2024 08:34:15 +1300 Subject: [PATCH] Remove obsolete function --- client/homebrew/utils/versionHistory.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/client/homebrew/utils/versionHistory.js b/client/homebrew/utils/versionHistory.js index 362c1cb33..33e4eb178 100644 --- a/client/homebrew/utils/versionHistory.js +++ b/client/homebrew/utils/versionHistory.js @@ -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 };