mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-04 08:12:39 +00:00
Remove obsolete function
This commit is contained in:
@@ -27,16 +27,6 @@ function getKeyBySlot(brew, slot){
|
|||||||
return `${HISTORY_PREFIX}-${brew.shareId}-${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) {
|
function parseBrewForStorage(brew, slot = 0) {
|
||||||
// Strip out unneeded object properties
|
// Strip out unneeded object properties
|
||||||
// Returns an array of [ key, brew ]
|
// Returns an array of [ key, brew ]
|
||||||
|
|||||||
Reference in New Issue
Block a user