From f04914ac15275149e04f9c1a4a3726aa2e4d35e4 Mon Sep 17 00:00:00 2001 From: Evan Welsh Date: Sat, 30 Oct 2021 15:22:25 -0700 Subject: [PATCH] js: Remove dead code in loginDialog and workspacesView - this._scrolling no longer exists - _getBannerAllocation takes a single argument Part-of: --- js/gdm/loginDialog.js | 2 +- js/ui/workspacesView.js | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/js/gdm/loginDialog.js b/js/gdm/loginDialog.js index d2a82b43d..760d7e9ef 100644 --- a/js/gdm/loginDialog.js +++ b/js/gdm/loginDialog.js @@ -602,7 +602,7 @@ var LoginDialog = GObject.registerClass({ let bannerAllocation = null; let bannerHeight = 0; if (this._bannerView.visible) { - bannerAllocation = this._getBannerAllocation(dialogBox, this._bannerView); + bannerAllocation = this._getBannerAllocation(dialogBox); bannerHeight = bannerAllocation.y2 - bannerAllocation.y1; } diff --git a/js/ui/workspacesView.js b/js/ui/workspacesView.js index 3761881d0..6dad2df3f 100644 --- a/js/ui/workspacesView.js +++ b/js/ui/workspacesView.js @@ -484,9 +484,6 @@ class WorkspacesView extends WorkspacesViewBase { } _activeWorkspaceChanged(_wm, _from, _to, _direction) { - if (this._scrolling) - return; - this._scrollToActive(); }