From 59f5648592c868513cb9c828cde8f7e8d05c0048 Mon Sep 17 00:00:00 2001 From: Samuel Mannehed Date: Fri, 8 May 2020 22:30:20 +0200 Subject: [PATCH] Remove unused properties and variables The code that used these were removed in the following commits: * 9ff86fb718477515ede2d6457f06643935d76bcd (RFB._mouse_arr) * bb6965f2e60c2301dd638383bdc792d1f10af942 (old_requestAnimationFrame) * 490d471c53b1791398d6c30f0efce54925939f33 (Display._c_forceCanvas) --- kasmweb/core/display.js | 1 - kasmweb/tests/test.display.js | 4 ---- 2 files changed, 5 deletions(-) diff --git a/kasmweb/core/display.js b/kasmweb/core/display.js index 40dd7ca..4d9a849 100644 --- a/kasmweb/core/display.js +++ b/kasmweb/core/display.js @@ -13,7 +13,6 @@ import { supportsImageMetadata } from './util/browser.js'; export default class Display { constructor(target) { this._drawCtx = null; - this._c_forceCanvas = false; this._renderQ = []; // queue drawing actions for in-oder rendering this._flushing = false; diff --git a/kasmweb/tests/test.display.js b/kasmweb/tests/test.display.js index 594f951..8775b3c 100644 --- a/kasmweb/tests/test.display.js +++ b/kasmweb/tests/test.display.js @@ -385,10 +385,6 @@ describe('Display/Canvas Helper', function () { sinon.spy(display, '_scan_renderQ'); }); - afterEach(function () { - window.requestAnimationFrame = this.old_requestAnimationFrame; - }); - it('should try to process an item when it is pushed on, if nothing else is on the queue', function () { display._renderQ_push({ type: 'noop' }); // does nothing expect(display._scan_renderQ).to.have.been.calledOnce;