Bug 1788780 - Remove unused telemetry variables lastScreenX and lastScreenY. r=kpatenio

Differential Revision: https://phabricator.services.mozilla.com/D156479
This commit is contained in:
Avery 2022-09-08 01:41:38 +00:00
parent 3cddbdca80
commit 0ddeec7e25

View File

@ -112,11 +112,8 @@ let Player = {
*/
resizeDebouncer: null,
/**
* Used for window movement Telemetry to determine if the player window has
* moved since the last time we checked.
* Used for Telemetry to identify the window.
*/
lastScreenX: -1,
lastScreenY: -1,
id: -1,
/**
@ -245,9 +242,6 @@ let Player = {
});
}, RESIZE_DEBOUNCE_RATE_MS);
this.lastScreenX = window.screenX;
this.lastScreenY = window.screenY;
this.computeAndSetMinimumSize(window.outerWidth, window.outerHeight);
// alwaysontop windows are not focused by default, so we have to do it
@ -656,9 +650,6 @@ let Player = {
* Event context details
*/
onMouseUp(event) {
this.lastScreenX = window.screenX;
this.lastScreenY = window.screenY;
// Corner snapping changes start here.
// Check if metakey pressed and macOS
let quadrant = this.determineCurrentQuadrant();