]> git.proxmox.com Git - mirror_novnc.git/commitdiff
Remove unused properties and variables
authorSamuel Mannehed <samuel@cendio.se>
Fri, 8 May 2020 20:30:20 +0000 (22:30 +0200)
committerSamuel Mannehed <samuel@cendio.se>
Sun, 31 May 2020 20:49:41 +0000 (22:49 +0200)
The code that used these were removed in the following commits:

9ff86fb718477515ede2d6457f06643935d76bcd (RFB._mouse_arr)
bb6965f2e60c2301dd638383bdc792d1f10af942 (old_requestAnimationFrame)
490d471c53b1791398d6c30f0efce54925939f33 (Display._c_forceCanvas)

core/display.js
core/rfb.js
tests/test.display.js

index 3dd5fcea12c78646ba8e04678f16dacb220b634d..4007ea7a88fdeca21fc3c9b4923df0579dd57619 100644 (file)
@@ -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;
index 4a8483fdd8fdb68b4694488d4bd5337f806a23eb..d2c7350b36e9872cfbcc2e8aeb072dbe39554925 100644 (file)
@@ -134,7 +134,6 @@ export default class RFB extends EventTargetMixin {
 
         // Mouse state
         this._mouse_buttonMask = 0;
-        this._mouse_arr = [];
         this._viewportDragging = false;
         this._viewportDragPos = {};
         this._viewportHasMoved = false;
index 594f9514feda3985646d00ffeb089fb22cdf520e..8775b3cdbd8e82bd3550f6f2700667d0a2d03734 100644 (file)
@@ -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;