Skip to content

Commit 9b1e195

Browse files
authored
Merge pull request #46 from leapfrogtechnology/is-removed
Remove is_enabled flag and unused methods
2 parents d22bd54 + 9816910 commit 9b1e195

File tree

1 file changed

+0
-30
lines changed

1 file changed

+0
-30
lines changed

src/index.ts

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,6 @@ import * as domainImplementation from './impl/domain';
1111

1212
const coreLog = debug(STORE_CORE);
1313

14-
/**
15-
* This variable is to check whether store is enabled or not. Since, Async Store is initialized
16-
* only when request is made.
17-
*
18-
* Note: By default it is disabled and is enabled when isEnabled() is invoked.
19-
*/
20-
let isStoreEnabled = false;
21-
2214
/**
2315
* The adapter which was used to initialize the store. The value
2416
* is set when this is initialized the first time.
@@ -64,28 +56,6 @@ export function initializeMiddleware(adapter: AsyncStoreAdapter = AsyncStoreAdap
6456
};
6557
}
6658

67-
/**
68-
* Set the store as enabled (by default it's not).
69-
*
70-
* @return void
71-
*/
72-
export function enable(): void {
73-
coreLog('Enabling the async store.');
74-
75-
isStoreEnabled = true;
76-
}
77-
78-
/**
79-
* Check if the stored is enabled.
80-
*
81-
* @returns {boolean}
82-
*/
83-
export function isEnabled(): boolean {
84-
coreLog(`Async Store enable status =`, isStoreEnabled);
85-
86-
return isStoreEnabled;
87-
}
88-
8959
/**
9060
* Initialize the async store based on the adapter provided.
9161
*

0 commit comments

Comments
 (0)