瀏覽代碼

clean code

Yuki Takei 7 年之前
父節點
當前提交
fd3aa6eb19
共有 1 個文件被更改,包括 0 次插入9 次删除
  1. 0 9
      src/client/js/components/PageComment/CommentEditor.jsx

+ 0 - 9
src/client/js/components/PageComment/CommentEditor.jsx

@@ -55,7 +55,6 @@ class CommentEditor extends React.Component {
     this.postHandler = this.postHandler.bind(this);
     this.uploadHandler = this.uploadHandler.bind(this);
 
-    this.toggleEditor = this.toggleEditor.bind(this);
     this.renderHtml = this.renderHtml.bind(this);
     this.handleSelect = this.handleSelect.bind(this);
     this.onSlackEnabledFlagChange = this.onSlackEnabledFlagChange.bind(this);
@@ -181,14 +180,6 @@ class CommentEditor extends React.Component {
     );
   }
 
-  toggleEditor() {
-    this.setState((prevState) => {
-      return {
-        showCommentEditor: !prevState.showCommentEditor,
-      };
-    });
-  }
-
   renderHtml(markdown) {
     const context = {
       markdown,