[gnome-shell/wip/wayland-gdm-cleanup: 5/19] gdm: Remove _cancelAndReset



commit 5b4337f71609b66c6b6e831f8f478b585f2cf961
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Fri Mar 7 15:48:39 2014 -0500

    gdm: Remove _cancelAndReset
    
    Calling Cancel(); on the UserVerifier will make us get a reset
    signal eventually, so simply wait for the natural flow.

 js/gdm/util.js |    9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)
---
diff --git a/js/gdm/util.js b/js/gdm/util.js
index 78dae28..0a307f4 100644
--- a/js/gdm/util.js
+++ b/js/gdm/util.js
@@ -487,11 +487,6 @@ const ShellUserVerifier = new Lang.Class({
         this.emit('verification-complete');
     },
 
-    _cancelAndReset: function() {
-        this.cancel();
-        this._onReset();
-    },
-
     _retry: function() {
         this.begin(this._userName, new Batch.Hold());
     },
@@ -518,12 +513,12 @@ const ShellUserVerifier = new Lang.Class({
             }
         } else {
             if (!this.hasPendingMessages) {
-                this._cancelAndReset();
+                this.cancel();
             } else {
                 let signalId = this.connect('no-more-messages',
                                             Lang.bind(this, function() {
                                                 this.disconnect(signalId);
-                                                this._cancelAndReset();
+                                                this.cancel();
                                             }));
             }
         }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]