[gnome-shell] workspace: Don't create useless childBox
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] workspace: Don't create useless childBox
- Date: Tue, 9 Mar 2021 15:48:59 +0000 (UTC)
commit 5792b98f791c743b42a6fedb16295be77d4d6cb0
Author: Jonas Dreßler <verdre v0yd nl>
Date: Thu Feb 25 12:06:25 2021 +0100
workspace: Don't create useless childBox
Creating a ClutterActorBox here is superfluous, we actually create and
assign a new box to this variable inside the loop.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1743>
js/ui/workspace.js | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/js/ui/workspace.js b/js/ui/workspace.js
index e78630df49..8a273e865e 100644
--- a/js/ui/workspace.js
+++ b/js/ui/workspace.js
@@ -613,7 +613,6 @@ var WorkspaceLayout = GObject.registerClass({
const workspaceBox = new Clutter.ActorBox();
const layoutBox = new Clutter.ActorBox();
- let childBox = new Clutter.ActorBox();
const { ControlsState } = OverviewControls;
const inSessionTransition =
@@ -657,7 +656,7 @@ var WorkspaceLayout = GObject.registerClass({
layoutBox.set_origin(x, y);
layoutBox.set_size(width, height);
- childBox = workspaceBox.interpolate(layoutBox,
+ const childBox = workspaceBox.interpolate(layoutBox,
this._stateAdjustment.value);
if (windowInfo.currentTransition) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]