From 9a95677f8e933bc0cdfccccdb4c1f45ebfa4c9af Mon Sep 17 00:00:00 2001 From: Sam Clegg Date: Sun, 22 Nov 2020 13:20:57 -0800 Subject: [PATCH] Remove unused JS var from pthread_detach. NFC Shame we don't have linters to help is catch this stuff. --- src/library_pthread.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/library_pthread.js b/src/library_pthread.js index 4e121f1b088a6..3e52c82f62ec0 100644 --- a/src/library_pthread.js +++ b/src/library_pthread.js @@ -983,7 +983,6 @@ var LibraryPThread = { err('pthread_detach attempted on thread ' + thread + ', which does not point to a valid thread, or does not exist anymore!'); return ERRNO_CODES.ESRCH; } - var threadStatus = Atomics.load(HEAPU32, (thread + {{{ C_STRUCTS.pthread.threadStatus }}} ) >> 2); // Follow musl convention: detached:0 means not detached, 1 means the thread // was created as detached, and 2 means that the thread was detached via // pthread_detach.