Yuki Takei před 3 roky
rodič
revize
5c17f2f723

+ 0 - 13
packages/app/src/client/services/EditorContainer.js

@@ -23,7 +23,6 @@ export default class EditorContainer extends Container {
 
     this.appContainer = appContainer;
     this.appContainer.registerContainer(this);
-    // this.retrieveEditorSettings = this.retrieveEditorSettings.bind(this);
 
     const mainContent = document.querySelector('#content-main');
 
@@ -37,10 +36,6 @@ export default class EditorContainer extends Container {
 
       previewOptions: defaultPreviewOptions,
 
-      // Defaults to null to show modal when not in DB
-      // isTextlintEnabled: null,
-      // textlintRules: [],
-
       indentSize: this.appContainer.config.adminPreferredIndentSize || 4,
     };
 
@@ -96,19 +91,11 @@ export default class EditorContainer extends Container {
     }
   }
 
-  // TODO: Remove when SWR is complete
   getCurrentOptionsToSave() {
     const opt = {
-      // isSlackEnabled: this.state.isSlackEnabled,
-      // slackChannels: this.state.slackChannels,
-      // grant: this.state.grant,
       pageTags: this.state.tags,
     };
 
-    // if (this.state.grantGroupId != null) {
-    //   opt.grantUserGroupId = this.state.grantGroupId;
-    // }
-
     return opt;
   }
 

+ 0 - 1
packages/app/src/components/PageEditor/CodeMirrorEditor.jsx

@@ -10,7 +10,6 @@ import * as loadScript from 'simple-load-script';
 import urljoin from 'url-join';
 
 import InterceptorManager from '~/services/interceptor-manager';
-import { useEditorSettings, useIsTextlintEnabled } from '~/stores/editor';
 import loggerFactory from '~/utils/logger';
 
 import { UncontrolledCodeMirror } from '../UncontrolledCodeMirror';