Skip to content

Commit c75ca97

Browse files
authored
Remove unused pthread code. NFC (#21777)
This should have been part of #21701
1 parent c95f089 commit c75ca97

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/postamble_minimal.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,7 @@ function initRuntime(wasmExports) {
5454
#endif
5555

5656
#if PTHREADS
57-
if (ENVIRONMENT_IS_PTHREAD) {
58-
// Export needed variables that worker.js needs to Module.
59-
Module['HEAPU32'] = HEAPU32;
60-
Module['__emscripten_thread_init'] = __emscripten_thread_init;
61-
Module['__emscripten_thread_exit'] = __emscripten_thread_exit;
62-
Module['_pthread_self'] = _pthread_self;
63-
return;
64-
}
57+
if (ENVIRONMENT_IS_PTHREAD) return
6558
#endif
6659

6760
#if WASM_WORKERS

0 commit comments

Comments
 (0)