From 191d907b2d5f0a30f17319aed35a811ef6ff1d01 Mon Sep 17 00:00:00 2001 From: Nigel Breslaw Date: Fri, 16 Feb 2024 16:02:00 +0200 Subject: [PATCH] Tidy away comments and unused properties --- native_gg/src/storage/StorageGG.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/native_gg/src/storage/StorageGG.ts b/native_gg/src/storage/StorageGG.ts index 0a12d060a..8bff444eb 100644 --- a/native_gg/src/storage/StorageGG.ts +++ b/native_gg/src/storage/StorageGG.ts @@ -10,7 +10,6 @@ type storageKey = "item_definition" | "accounts"; class StorageGG { private static instance: StorageGG; - private static isReady = false; private nativeStore = new MMKV(); private constructor() {} @@ -22,8 +21,6 @@ class StorageGG { return StorageGG.instance; } - private init() {} - static setData(data: JSON, storageKey: storageKey, errorMessage: string): Promise { return new Promise((resolve, reject) => { if (Platform.OS === "web") { @@ -60,12 +57,9 @@ class StorageGG { openRequest.onsuccess = () => { const db = openRequest.result; - // Start a transaction const tx = db.transaction(Store.storeName, "readwrite"); - // Get the store const store = tx.objectStore(Store.storeName); - // Add the string to the store const request = store.put(data, storageKey); request.onsuccess = () => { console.log("data added to the store", storageKey);