From b4f4b5d0b7d52d328436a6b3ea6df49aed32fb5c Mon Sep 17 00:00:00 2001 From: Kushagra Gour Date: Tue, 16 Jul 2019 17:03:22 +0530 Subject: [PATCH] contentwraps: remove unused code --- src/components/ContentWrap.jsx | 1 + src/components/ContentWrapFiles.jsx | 25 +++---------------------- 2 files changed, 4 insertions(+), 22 deletions(-) diff --git a/src/components/ContentWrap.jsx b/src/components/ContentWrap.jsx index 24be0f7..c4c6f75 100644 --- a/src/components/ContentWrap.jsx +++ b/src/components/ContentWrap.jsx @@ -876,6 +876,7 @@ export default class ContentWrap extends Component { toggleConsole={this.toggleConsole} onEvalInputKeyup={this.evalConsoleExpr} /> + diff --git a/src/components/ContentWrapFiles.jsx b/src/components/ContentWrapFiles.jsx index 5f22fb6..f7a856e 100644 --- a/src/components/ContentWrapFiles.jsx +++ b/src/components/ContentWrapFiles.jsx @@ -443,28 +443,6 @@ export default class ContentWrapFiles extends Component { // ); // return handleModeRequirements(value); } - updateCssMode(value) { - // this.props.onCodeModeChange('css', value); - // this.props.currentItem.cssMode = value; - this.cm.setOption('mode', modes[value].cmMode); - this.cm.setOption('readOnly', modes[value].cmDisable); - /* window.cssSettingsBtn.classList[ - modes[value].hasSettings ? 'remove' : 'add' - ]('hide'); */ - CodeMirror.autoLoadMode( - this.cm, - modes[value].cmPath || modes[value].cmMode - ); - return handleModeRequirements(value); - } - updateJsMode(value) { - this.cm.setOption('mode', modes[value].cmMode); - CodeMirror.autoLoadMode( - this.cm, - modes[value].cmPath || modes[value].cmMode - ); - return handleModeRequirements(value); - } getDemoFrame(callback) { callback(this.frame); @@ -679,8 +657,11 @@ export default class ContentWrapFiles extends Component { id="demo-frame" allowfullscreen /> +