Skip to content

Commit

Permalink
remove getSystemContext (unused)
Browse files Browse the repository at this point in the history
  • Loading branch information
justjake committed Sep 14, 2024
1 parent fc6d5e9 commit 13458bc
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions packages/quickjs-emscripten-core/src/runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ export class QuickJSRuntime extends UsingDisposable implements Disposable {
* associated with the runtime.
*
* If this runtime was created stand-alone, this may or may not contain a context.
* A context here may be allocated if one is needed by the runtime, eg for {@link computeMemoryUsage}.
*/
public context: QuickJSContext | undefined

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

private getSystemContext() {
if (!this.context) {
// We own this context and should dispose of it.
this.context = this.scope.manage(this.newContext())
}
return this.context
}

private cToHostCallbacks: RuntimeCallbacks = {
shouldInterrupt: (rt) => {
if (rt !== this.rt.value) {
Expand Down

0 comments on commit 13458bc

Please sign in to comment.