Skip to content

Commit

Permalink
Remove unused variables from runtime_pthread.js. NFC
Browse files Browse the repository at this point in the history
These were introduced in emscripten-core#21701 but were never used.
  • Loading branch information
sbc100 committed Nov 11, 2024
1 parent 9e0121c commit cb00f77
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 cb00f77

Please sign in to comment.