From e75eb72d3f7552dec462844b27383a2feb2a55a0 Mon Sep 17 00:00:00 2001 From: "G.Ambatte" Date: Wed, 9 Oct 2024 14:54:23 +1300 Subject: [PATCH] Remove obsolete function --- client/homebrew/utils/versionHistory.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/client/homebrew/utils/versionHistory.js b/client/homebrew/utils/versionHistory.js index a4b38911e..49239bd94 100644 --- a/client/homebrew/utils/versionHistory.js +++ b/client/homebrew/utils/versionHistory.js @@ -27,16 +27,6 @@ function getKeyBySlot(brew, slot){ return `${HISTORY_PREFIX}-${brew.shareId}-${slot}`; }; -// function getVersionBySlot(brew, slot){ -// // Read stored brew data -// // - If it exists, parse data to object -// // - If it doesn't exist, pass default object -// const key = getKeyBySlot(brew, slot); -// const storedVersion = IDB.get(key); -// const output = storedVersion ? storedVersion : { expireAt: '2000-01-01T00:00:00.000Z', shareId: brew.shareId, noData: true }; -// return output; -// }; - function parseBrewForStorage(brew, slot = 0) { // Strip out unneeded object properties // Returns an array of [ key, brew ]