File tree Expand file tree Collapse file tree 1 file changed +0
-30
lines changed
Expand file tree Collapse file tree 1 file changed +0
-30
lines changed Original file line number Diff line number Diff line change @@ -11,14 +11,6 @@ import * as domainImplementation from './impl/domain';
1111
1212const 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 *
You can’t perform that action at this time.
0 commit comments