From d0d22136f5a4d9709dfb0f7a1021eedc8939fb9d Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Fri, 18 Mar 2016 11:12:06 +0000 Subject: [PATCH] remove totally dead wood from stale Modal API --- src/components/structures/UserSettings.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/components/structures/UserSettings.js b/src/components/structures/UserSettings.js index bf66e43ab8..99198ac691 100644 --- a/src/components/structures/UserSettings.js +++ b/src/components/structures/UserSettings.js @@ -126,9 +126,7 @@ module.exports = React.createClass({ onLogoutClicked: function(ev) { var LogoutPrompt = sdk.getComponent('dialogs.LogoutPrompt'); - this.logoutModal = Modal.createDialog( - LogoutPrompt, {onCancel: this.onLogoutPromptCancel} - ); + this.logoutModal = Modal.createDialog(LogoutPrompt); }, onPasswordChangeError: function(err) { @@ -162,10 +160,6 @@ module.exports = React.createClass({ }); }, - onLogoutPromptCancel: function() { - this.logoutModal.closeDialog(); - }, - onEnableNotificationsChange: function(event) { UserSettingsStore.setEnableNotifications(event.target.checked); },