From b104228a7bb0b525a9964c6efa0b579f6b40276e Mon Sep 17 00:00:00 2001 From: Luke Barnard Date: Mon, 10 Jul 2017 14:25:33 +0100 Subject: [PATCH] Remove redundant functions, bindings, props --- src/components/views/rooms/MessageComposer.js | 4 ---- src/components/views/rooms/MessageComposerInput.js | 7 ------- 2 files changed, 11 deletions(-) diff --git a/src/components/views/rooms/MessageComposer.js b/src/components/views/rooms/MessageComposer.js index c623c88312..6993fd8f7d 100644 --- a/src/components/views/rooms/MessageComposer.js +++ b/src/components/views/rooms/MessageComposer.js @@ -36,9 +36,6 @@ export default class MessageComposer extends React.Component { this.uploadFiles = this.uploadFiles.bind(this); this.onVoiceCallClick = this.onVoiceCallClick.bind(this); this.onInputContentChanged = this.onInputContentChanged.bind(this); - this.onUpArrow = this.onUpArrow.bind(this); - this.onDownArrow = this.onDownArrow.bind(this); - this._tryComplete = this._tryComplete.bind(this); this._onAutocompleteConfirm = this._onAutocompleteConfirm.bind(this); this.onToggleFormattingClicked = this.onToggleFormattingClicked.bind(this); this.onToggleMarkdownClicked = this.onToggleMarkdownClicked.bind(this); @@ -349,7 +346,6 @@ export default class MessageComposer extends React.Component { onResize={this.props.onResize} room={this.props.room} placeholder={placeholderText} - tryComplete={this._tryComplete} onFilesPasted={this.uploadFiles} onContentChanged={this.onInputContentChanged} onInputStateChanged={this.onInputStateChanged} />, diff --git a/src/components/views/rooms/MessageComposerInput.js b/src/components/views/rooms/MessageComposerInput.js index 6da7f272c4..cf6dfbb6b7 100644 --- a/src/components/views/rooms/MessageComposerInput.js +++ b/src/components/views/rooms/MessageComposerInput.js @@ -73,13 +73,6 @@ export default class MessageComposerInput extends React.Component { // called with current plaintext content (as a string) whenever it changes onContentChanged: React.PropTypes.func, - onUpArrow: React.PropTypes.func, - - onDownArrow: React.PropTypes.func, - - // attempts to confirm currently selected completion, returns whether actually confirmed - tryComplete: React.PropTypes.func, - onInputStateChanged: React.PropTypes.func, };