From fa54fdf2bf9bf8523da393a81ec1ac1cd4fa0f4c Mon Sep 17 00:00:00 2001
From: alyssaf16 <alyssa_feinberg@brown.edu>
Date: Sun, 6 Oct 2024 15:11:20 -0400
Subject: comments

---
 src/client/views/pdf/PDFViewer.tsx | 43 --------------------------------------
 1 file changed, 43 deletions(-)

(limited to 'src/client/views/pdf/PDFViewer.tsx')

diff --git a/src/client/views/pdf/PDFViewer.tsx b/src/client/views/pdf/PDFViewer.tsx
index 02d310f7d..1d7f269fb 100644
--- a/src/client/views/pdf/PDFViewer.tsx
+++ b/src/client/views/pdf/PDFViewer.tsx
@@ -30,12 +30,6 @@ import { GPTPopup } from './GPTPopup/GPTPopup';
 import './PDFViewer.scss';
 import { GPTCallType, gptAPICall } from '../../apis/gpt/GPT';
 import ReactLoading from 'react-loading';
-// import html2canvas from 'html2canvas';
-// import SpeechRecognition, { useSpeechRecognition } from 'react-speech-recognition';
-
-// pdfjsLib.GlobalWorkerOptions.workerSrc = `/assets/pdf.worker.js`;
-// The workerSrc property shall be specified.
-// Pdfjs.GlobalWorkerOptions.workerSrc = 'https://unpkg.com/pdfjs-dist@4.4.168/build/pdf.worker.mjs';
 
 interface IViewerProps extends FieldViewProps {
     pdfBox: PDFBox;
@@ -64,43 +58,6 @@ export class PDFViewer extends ObservableReactComponent<IViewerProps> {
         super(props);
         makeObservable(this);
     }
-    // @observable transcriptRef = React.createRef();
-    // @observable startBtnRef = React.createRef();
-    // @observable stopBtnRef = React.createRef();
-    // @observable transcriptElement = '';
-
-    // handleResult = (e: SpeechRecognitionEvent) => {
-    //     let interimTranscript = '';
-    //     let finalTranscript = '';
-    //     console.log('H');
-    //     for (let i = e.resultIndex; i < e.results.length; i++) {
-    //         const transcript = e.results[i][0].transcript;
-    //         if (e.results[i].isFinal) {
-    //             finalTranscript += transcript;
-    //         } else {
-    //             interimTranscript += transcript;
-    //         }
-    //     }
-    //     console.log(interimTranscript);
-    //     this.transcriptElement = finalTranscript || interimTranscript;
-    // };
-
-    // startListening = () => {
-    //     const SpeechRecognition = window.SpeechRecognition || window.webkitSpeechRecognition;
-    //     if (SpeechRecognition) {
-    //         console.log('here');
-    //         const recognition = new SpeechRecognition();
-    //         recognition.continuous = true; // Continue listening even if the user pauses
-    //         recognition.interimResults = true; // Show interim results
-    //         recognition.lang = 'en-US'; // Set language (optional)
-    //         recognition.onresult = this.handleResult.bind(this);
-    //         // recognition.onend = this.handleEnd.bind(this);
-
-    //         recognition.start();
-    //         // this.handleResult;
-    //         // recognition.stop();
-    //     }
-    // };
 
     @observable _pageSizes: { width: number; height: number }[] = [];
     @observable _savedAnnotations = new ObservableMap<number, (HTMLDivElement & { marqueeing?: boolean })[]>();
-- 
cgit v1.2.3-70-g09d2

