Skip to content

Commit 254059a

Browse files
committed
Remove code no longer required
1 parent 7d1ba2d commit 254059a

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

src/commons/sagas/WorkspaceSaga/helpers/evalCode.ts

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -130,15 +130,7 @@ export function* evalCodeSaga(
130130
const entrypointCode = files[entrypointFilePath];
131131

132132
function call_variant(variant: Variant) {
133-
if (variant === Variant.LAZY) {
134-
return call(runFilesInContext, files, entrypointFilePath, context, {
135-
scheduler: 'preemptive',
136-
originalMaxExecTime: execTime,
137-
stepLimit: stepLimit,
138-
useSubst: substActiveAndCorrectChapter,
139-
envSteps: currentStep
140-
});
141-
} else if (variant === Variant.WASM) {
133+
if (variant === Variant.WASM) {
142134
// Note: WASM does not support multiple file programs.
143135
return call(
144136
wasm_compile_and_run,
@@ -256,7 +248,6 @@ export function* evalCodeSaga(
256248
});
257249
}
258250

259-
const isLazy: boolean = context.variant === Variant.LAZY;
260251
const isWasm: boolean = context.variant === Variant.WASM;
261252
const isC: boolean = context.chapter === Chapter.FULL_C;
262253
const isJava: boolean = context.chapter === Chapter.FULL_JAVA;
@@ -284,7 +275,7 @@ export function* evalCodeSaga(
284275
result:
285276
actionType === InterpreterActions.debuggerResume.type
286277
? call(resume, lastDebuggerResult)
287-
: isLazy || isWasm
278+
: isWasm
288279
? call_variant(context.variant)
289280
: isC
290281
? call(cCompileAndRun, entrypointCode, context)

0 commit comments

Comments
 (0)