Remove unused properties and variables

The code that used these were removed in the following commits:

* 9ff86fb718 (RFB._mouse_arr)
* bb6965f2e6 (old_requestAnimationFrame)
* 490d471c53 (Display._c_forceCanvas)
This commit is contained in:
Samuel Mannehed 2020-05-08 22:30:20 +02:00
parent 42e3b03fa8
commit dff4fefa3c
3 changed files with 0 additions and 6 deletions

View 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;

View 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;

View 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;