From 0c511c884bf7cbcc7cc28848a68a3ee00d33186e Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Fri, 7 Mar 2014 17:39:15 -0500 Subject: [PATCH] gdm: Remove the (partially) unused cancelled signal When we emit the 'cancelled' signal if we were previously verifying, we'll always emit a 'failed' signal. LoginDialog doesn't care about cancelled, only UnlockDialog cares about both, but it does the same thing for both, so there's no reason to have the extra signal. --- js/gdm/authPrompt.js | 1 - js/ui/unlockDialog.js | 1 - 2 files changed, 2 deletions(-) diff --git a/js/gdm/authPrompt.js b/js/gdm/authPrompt.js index 6df25a79b..d0280529a 100644 --- a/js/gdm/authPrompt.js +++ b/js/gdm/authPrompt.js @@ -493,7 +493,6 @@ const AuthPrompt = new Lang.Class({ cancel: function() { this.reset(); - this.emit('cancelled'); } }); Signals.addSignalMethods(AuthPrompt.prototype); diff --git a/js/ui/unlockDialog.js b/js/ui/unlockDialog.js index b04ddf092..001aabc8d 100644 --- a/js/ui/unlockDialog.js +++ b/js/ui/unlockDialog.js @@ -53,7 +53,6 @@ const UnlockDialog = new Lang.Class({ this._authPrompt = new AuthPrompt.AuthPrompt(new Gdm.Client(), AuthPrompt.AuthPromptMode.UNLOCK_ONLY); this._authPrompt.connect('failed', Lang.bind(this, this._fail)); - this._authPrompt.connect('cancelled', Lang.bind(this, this._fail)); this._authPrompt.connect('reset', Lang.bind(this, this._onReset)); this._authPrompt.setPasswordChar('\u25cf'); this._authPrompt.nextButton.label = _("Unlock");