From b6e97fe4492e6fe9235e59e66a1404e180abfed7 Mon Sep 17 00:00:00 2001 From: Evan Welsh Date: Wed, 7 Jun 2023 23:45:38 -0700 Subject: [PATCH] js: Remove unused GDM utility functions Part-of: --- js/gdm/util.js | 47 ----------------------------------------------- 1 file changed, 47 deletions(-) diff --git a/js/gdm/util.js b/js/gdm/util.js index 8936e495b..94e05eaf0 100644 --- a/js/gdm/util.js +++ b/js/gdm/util.js @@ -31,7 +31,6 @@ Gio._promisify(Gdm.UserVerifierProxy.prototype, 'call_begin_verification'); var PASSWORD_SERVICE_NAME = 'gdm-password'; var FINGERPRINT_SERVICE_NAME = 'gdm-fingerprint'; var SMARTCARD_SERVICE_NAME = 'gdm-smartcard'; -var FADE_ANIMATION_TIME = 160; var CLONE_FADE_ANIMATION_TIME = 250; var LOGIN_SCREEN_SCHEMA = 'org.gnome.login-screen'; @@ -67,52 +66,6 @@ const FingerprintReaderType = { SWIPE: 2, }; -function fadeInActor(actor) { - if (actor.opacity == 255 && actor.visible) - return null; - - let hold = new Batch.Hold(); - actor.show(); - let [, naturalHeight] = actor.get_preferred_height(-1); - - actor.opacity = 0; - actor.set_height(0); - actor.ease({ - opacity: 255, - height: naturalHeight, - duration: FADE_ANIMATION_TIME, - mode: Clutter.AnimationMode.EASE_OUT_QUAD, - onComplete: () => { - this.set_height(-1); - hold.release(); - }, - }); - - return hold; -} - -function fadeOutActor(actor) { - if (!actor.visible || actor.opacity == 0) { - actor.opacity = 0; - actor.hide(); - return null; - } - - let hold = new Batch.Hold(); - actor.ease({ - opacity: 0, - height: 0, - duration: FADE_ANIMATION_TIME, - mode: Clutter.AnimationMode.EASE_OUT_QUAD, - onComplete: () => { - this.hide(); - this.set_height(-1); - hold.release(); - }, - }); - return hold; -} - /** * @param {Clutter.Actor} actor */