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>
This commit is contained in:
Evan Welsh 2021-10-30 15:22:25 -07:00 committed by Marge Bot
parent f752be2bfe
commit f04914ac15
2 changed files with 1 additions and 4 deletions

View File

@ -602,7 +602,7 @@ var LoginDialog = GObject.registerClass({
let bannerAllocation = null; let bannerAllocation = null;
let bannerHeight = 0; let bannerHeight = 0;
if (this._bannerView.visible) { if (this._bannerView.visible) {
bannerAllocation = this._getBannerAllocation(dialogBox, this._bannerView); bannerAllocation = this._getBannerAllocation(dialogBox);
bannerHeight = bannerAllocation.y2 - bannerAllocation.y1; bannerHeight = bannerAllocation.y2 - bannerAllocation.y1;
} }

View File

@ -484,9 +484,6 @@ class WorkspacesView extends WorkspacesViewBase {
} }
_activeWorkspaceChanged(_wm, _from, _to, _direction) { _activeWorkspaceChanged(_wm, _from, _to, _direction) {
if (this._scrolling)
return;
this._scrollToActive(); this._scrollToActive();
} }