removed dead code

This commit is contained in:
or-else
2017-09-17 20:57:19 -07:00
parent 8f13d2c856
commit 859dec8410
+4 -9
View File
@@ -1130,7 +1130,6 @@
}, },
componentWillMount: function() { componentWillMount: function() {
var me = Tinode.getMeTopic(); var me = Tinode.getMeTopic();
me.onMetaDesc = this.onMetaDesc;
var defacs = me.getDefaultAccess(); var defacs = me.getDefaultAccess();
this.setState({ this.setState({
fullName: me.public ? me.public.fn : undefined, fullName: me.public ? me.public.fn : undefined,
@@ -1140,13 +1139,9 @@
anon: defacs.anon anon: defacs.anon
}); });
}, },
componentWillUnmount: function() { componentWillUnmount: function() {
var me = Tinode.getMeTopic(); var me = Tinode.getMeTopic();
me.onMetaDesc = undefined;
},
onMetaDesc: function(desc) {
// Update form with changed values
}, },
handleFullNameUpdate: function(fn) { handleFullNameUpdate: function(fn) {
@@ -1321,7 +1316,6 @@
componentWillUnmount: function() { componentWillUnmount: function() {
var me = Tinode.getMeTopic(); var me = Tinode.getMeTopic();
me.onContactUpdate = undefined; me.onContactUpdate = undefined;
me.onData = undefined;
me.onSubsUpdated = undefined; me.onSubsUpdated = undefined;
}, },
// Reactions to updates to the contact list. // Reactions to updates to the contact list.
@@ -2867,6 +2861,7 @@
this.setState({serverVersion: params.ver + " (" + (params.build ? params.build : "none") + ")"}); this.setState({serverVersion: params.ver + " (" + (params.build ? params.build : "none") + ")"});
this.doLogin(this.state.login, this.state.password); this.doLogin(this.state.login, this.state.password);
}, },
doLogin: function(login, password) { doLogin: function(login, password) {
var instance = this; var instance = this;
@@ -3292,8 +3287,8 @@
<MessagesView <MessagesView
displayMobile={this.state.displayMobile} displayMobile={this.state.displayMobile}
hideSelf={(this.state.displayMobile && hideSelf={this.state.displayMobile &&
(this.state.mobilePanel !== 'topic-view' || this.state.showInfoPanel))} (this.state.mobilePanel !== 'topic-view' || this.state.showInfoPanel)}
topic={this.state.topicSelected} topic={this.state.topicSelected}
myUserId={this.state.myUserId} myUserId={this.state.myUserId}
serverVersion={this.state.serverVersion} serverVersion={this.state.serverVersion}