refactor(client): remove unused handler code (#56025)

pull/56036/head
Oliver Eyton-Williams 2024-09-06 23:04:49 +02:00 committed by GitHub
parent aa88ca709a
commit a3fdd7b16c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 8 deletions

View File

@ -4,7 +4,6 @@ import pythonWorkerData from '../../../../config/browser-scripts/python-worker.j
const pythonWorkerSrc = `/js/${pythonWorkerData.filename}.js`;
let worker: Worker | null = null;
let testWorker: Worker | null = null;
let listener: ((event: MessageEvent) => void) | null = null;
type Code = {
contents: string;
@ -22,13 +21,6 @@ function getPythonWorker(): Worker {
return worker;
}
export function getPythonTestWorker(): Worker {
if (!testWorker) {
testWorker = new Worker(pythonWorkerSrc);
}
return testWorker;
}
type PythonWorkerEvent = {
data: {
type: