mirror of https://github.com/vector-im/riot-web
Remove spurious, unused code
parent
e6ec5742be
commit
77348e6201
|
@ -227,21 +227,6 @@ export default class MessageComposer extends React.Component {
|
||||||
this.setState({inputState});
|
this.setState({inputState});
|
||||||
}
|
}
|
||||||
|
|
||||||
onUpArrow() {
|
|
||||||
return this.refs.autocomplete.onUpArrow();
|
|
||||||
}
|
|
||||||
|
|
||||||
onDownArrow() {
|
|
||||||
return this.refs.autocomplete.onDownArrow();
|
|
||||||
}
|
|
||||||
|
|
||||||
_tryComplete(): boolean {
|
|
||||||
if (this.refs.autocomplete) {
|
|
||||||
return this.refs.autocomplete.onCompletionClicked();
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
_onAutocompleteConfirm(range, completion) {
|
_onAutocompleteConfirm(range, completion) {
|
||||||
if (this.messageComposerInput) {
|
if (this.messageComposerInput) {
|
||||||
this.messageComposerInput.setDisplayedCompletion(range, completion);
|
this.messageComposerInput.setDisplayedCompletion(range, completion);
|
||||||
|
@ -366,10 +351,7 @@ export default class MessageComposer extends React.Component {
|
||||||
room={this.props.room}
|
room={this.props.room}
|
||||||
placeholder={placeholderText}
|
placeholder={placeholderText}
|
||||||
tryComplete={this._tryComplete}
|
tryComplete={this._tryComplete}
|
||||||
onUpArrow={this.onUpArrow}
|
|
||||||
onDownArrow={this.onDownArrow}
|
|
||||||
onFilesPasted={this.uploadFiles}
|
onFilesPasted={this.uploadFiles}
|
||||||
tabComplete={this.props.tabComplete} // used for old messagecomposerinput/tabcomplete
|
|
||||||
onContentChanged={this.onInputContentChanged}
|
onContentChanged={this.onInputContentChanged}
|
||||||
onInputStateChanged={this.onInputStateChanged} />,
|
onInputStateChanged={this.onInputStateChanged} />,
|
||||||
formattingButton,
|
formattingButton,
|
||||||
|
|
|
@ -887,14 +887,7 @@ MessageComposerInput.propTypes = {
|
||||||
// called with current plaintext content (as a string) whenever it changes
|
// called with current plaintext content (as a string) whenever it changes
|
||||||
onContentChanged: React.PropTypes.func,
|
onContentChanged: React.PropTypes.func,
|
||||||
|
|
||||||
onUpArrow: React.PropTypes.func,
|
|
||||||
|
|
||||||
onDownArrow: React.PropTypes.func,
|
|
||||||
|
|
||||||
onFilesPasted: React.PropTypes.func,
|
onFilesPasted: React.PropTypes.func,
|
||||||
|
|
||||||
// attempts to confirm currently selected completion, returns whether actually confirmed
|
|
||||||
tryComplete: React.PropTypes.func,
|
|
||||||
|
|
||||||
onInputStateChanged: React.PropTypes.func,
|
onInputStateChanged: React.PropTypes.func,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue