[gnome-shell] js: Remove dead code in loginDialog and workspacesView
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] js: Remove dead code in loginDialog and workspacesView
- Date: Wed, 5 Jan 2022 15:50:34 +0000 (UTC)
commit f04914ac15275149e04f9c1a4a3726aa2e4d35e4
Author: Evan Welsh <contact evanwelsh com>
Date: Sat Oct 30 15:22:25 2021 -0700
js: Remove dead code in loginDialog and workspacesView
- this._scrolling no longer exists
- _getBannerAllocation takes a single argument
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2042>
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 d2a82b43d1..760d7e9ef5 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 3761881d01..6dad2df3f5 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();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]