Skip to content

Commit 3a8d3ff

Browse files
Sushant BhasinSushant Bhasin
Sushant Bhasin
authored and
Sushant Bhasin
committed
fix: removing unused imports and functions
1 parent b8e979f commit 3a8d3ff

File tree

1 file changed

+1
-18
lines changed

1 file changed

+1
-18
lines changed

src/Utils.ts

+1-18
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,7 @@
1111
*/
1212

1313
import { normalize as normalizePath } from 'path';
14-
import { AEM_MODE, Model, PathUtils, AuthoringUtils } from '@adobe/aem-spa-page-model-manager';
15-
import { Constants } from './Constants';
16-
17-
/**
18-
* Returns the current WCM mode based on meta property.
19-
* @private
20-
*/
21-
function getWCMMode(): AEM_MODE {
22-
let wcmMode = null;
23-
24-
if (PathUtils.isBrowser()) {
25-
const wcmModeMeta = document.head.querySelector(Constants._WCM_MODE_META_SELECTOR);
26-
27-
wcmMode = wcmModeMeta?.getAttribute('content') as AEM_MODE;
28-
}
29-
30-
return wcmMode || AEM_MODE.DISABLED;
31-
}
14+
import { Model, AuthoringUtils } from '@adobe/aem-spa-page-model-manager';
3215

3316
interface ComponentProps {
3417
pagePath?: string;

0 commit comments

Comments
 (0)