refactor(client): remove unused handler code (#56025)
parent
aa88ca709a
commit
a3fdd7b16c
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue