Skip to content

Commit

Permalink
Remove unused variables from runtime_pthread.js. NFC (#22908)
Browse files Browse the repository at this point in the history
These were introduced in #21701 but were never used.
  • Loading branch information
sbc100 authored Nov 12, 2024
1 parent 5c81135 commit 2a2047e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/runtime_pthread.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ var workerID = 0;
if (ENVIRONMENT_IS_PTHREAD) {
#if !MINIMAL_RUNTIME
var wasmPromiseResolve;
var wasmPromiseReject;
#endif
var receivedWasmModule;

#if ENVIRONMENT_MAY_BE_NODE
// Node.js support
Expand Down Expand Up @@ -66,7 +64,7 @@ if (ENVIRONMENT_IS_PTHREAD) {

#if !MINIMAL_RUNTIME
Module['instantiateWasm'] = (info, receiveInstance) => {
return new Promise((resolve, reject) => {
return new Promise((resolve) => {
wasmPromiseResolve = (module) => {
// Instantiate from the module posted from the main thread.
// We can just use sync instantiation in the worker.
Expand All @@ -81,7 +79,6 @@ if (ENVIRONMENT_IS_PTHREAD) {
#endif
resolve();
};
wasmPromiseReject = reject;
});
}
#endif
Expand Down

0 comments on commit 2a2047e

Please sign in to comment.