Skip to content

Commit 13458bc

Browse files
committed
remove getSystemContext (unused)
1 parent fc6d5e9 commit 13458bc

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

packages/quickjs-emscripten-core/src/runtime.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ export class QuickJSRuntime extends UsingDisposable implements Disposable {
7979
* associated with the runtime.
8080
*
8181
* If this runtime was created stand-alone, this may or may not contain a context.
82-
* A context here may be allocated if one is needed by the runtime, eg for {@link computeMemoryUsage}.
8382
*/
8483
public context: QuickJSContext | undefined
8584

@@ -416,14 +415,6 @@ export class QuickJSRuntime extends UsingDisposable implements Disposable {
416415
return `${this.constructor.name} { rt: ${this.rt.value} }`
417416
}
418417

419-
private getSystemContext() {
420-
if (!this.context) {
421-
// We own this context and should dispose of it.
422-
this.context = this.scope.manage(this.newContext())
423-
}
424-
return this.context
425-
}
426-
427418
private cToHostCallbacks: RuntimeCallbacks = {
428419
shouldInterrupt: (rt) => {
429420
if (rt !== this.rt.value) {

0 commit comments

Comments
 (0)