From 988bd775b30fbd8c9f7811000a32e255623cf606 Mon Sep 17 00:00:00 2001
From: DD Liu <liudi@media.mit.edu>
Date: Tue, 1 Jun 2021 13:36:53 -0400
Subject: [PATCH] Remove unused class

---
 src/lib/video/modal-video-manager.js | 62 ----------------------------
 1 file changed, 62 deletions(-)
 delete mode 100644 src/lib/video/modal-video-manager.js

diff --git a/src/lib/video/modal-video-manager.js b/src/lib/video/modal-video-manager.js
deleted file mode 100644
index fee3d452d..000000000
--- a/src/lib/video/modal-video-manager.js
+++ /dev/null
@@ -1,62 +0,0 @@
-import VideoProvider from './video-provider.js';
-/**
- * Video Manager for Camera Modal
- */
-class ModalVideoManager {
-    constructor (canvas) {
-        this._videoProvider = new VideoProvider();
-
-        this._frameTimeout = 16;
-
-        this._canvas = canvas;
-        // These values are double the stage dimensions so that the resulting
-        // image does not have to get sized down to accomodate double resolution
-        this._canvasWidth = 960; // Double Stage Width
-        this._canvasHeight = 720; // Double Stage Height
-
-    }
-
-    enableVideo (onPermissionSuccess, onVideoLoaded) {
-        const thisContext = this;
-        this._videoProvider.enableVideo(onVideoLoaded).then(() => {
-            if (onPermissionSuccess) onPermissionSuccess();
-            const ctx = thisContext._canvas.getContext('2d');
-            ctx.scale(-1, 1);
-            ctx.translate(thisContext._canvasWidth * -1, 0);
-
-            if (onVideoLoaded) {
-                thisContext._videoProvider.video.onloadeddata = () => {
-                    onVideoLoaded();
-                };
-            }
-
-            thisContext._drawFrames();
-        });
-    }
-
-    _drawFrames () {
-        const video = this._videoProvider.video;
-        this._videoFeedInterval = setInterval(() =>
-            this._canvas.getContext('2d').drawImage(video,
-                // source x, y, width, height
-                0, 0, video.videoWidth, video.videoHeight,
-                // dest x, y, width, height
-                0, 0, this._canvasWidth, this._canvasHeight
-            ), this._frameTimeout);
-    }
-
-    takeSnapshot () {
-        clearInterval(this._videoFeedInterval);
-        return this._canvas.toDataURL('image/png');
-    }
-
-    clearSnapshot () {
-        this._drawFrames();
-    }
-
-    disableVideo () {
-        this._videoProvider.disableVideo();
-    }
-}
-
-export default ModalVideoManager;
-- 
GitLab