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>
This commit is contained in:
Jonas Dreßler 2021-02-25 12:06:25 +01:00 committed by Marge Bot
parent ec4b9b8894
commit 5792b98f79

View File

@ -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) {