Skip to content

Commit 2a2047e

Browse files
authored
Remove unused variables from runtime_pthread.js. NFC (#22908)
These were introduced in #21701 but were never used.
1 parent 5c81135 commit 2a2047e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/runtime_pthread.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ var workerID = 0;
1717
if (ENVIRONMENT_IS_PTHREAD) {
1818
#if !MINIMAL_RUNTIME
1919
var wasmPromiseResolve;
20-
var wasmPromiseReject;
2120
#endif
22-
var receivedWasmModule;
2321

2422
#if ENVIRONMENT_MAY_BE_NODE
2523
// Node.js support
@@ -66,7 +64,7 @@ if (ENVIRONMENT_IS_PTHREAD) {
6664

6765
#if !MINIMAL_RUNTIME
6866
Module['instantiateWasm'] = (info, receiveInstance) => {
69-
return new Promise((resolve, reject) => {
67+
return new Promise((resolve) => {
7068
wasmPromiseResolve = (module) => {
7169
// Instantiate from the module posted from the main thread.
7270
// We can just use sync instantiation in the worker.
@@ -81,7 +79,6 @@ if (ENVIRONMENT_IS_PTHREAD) {
8179
#endif
8280
resolve();
8381
};
84-
wasmPromiseReject = reject;
8582
});
8683
}
8784
#endif

0 commit comments

Comments
 (0)