diff --git a/src/corelib/global/qlogging.cpp b/src/corelib/global/qlogging.cpp index 4a80b1c5c6d..94ec78f3820 100644 --- a/src/corelib/global/qlogging.cpp +++ b/src/corelib/global/qlogging.cpp @@ -1789,13 +1789,6 @@ static void stderr_message_handler(QtMsgType type, const QMessageLogContext &con if (formattedMessage.isNull()) return; -#ifdef Q_OS_WASM - // Prevent thread cross-talk, which causes Emscripten to log - // non-valid UTF-8. FIXME: remove once we upgrade to emsdk > 2.0.30 - Q_CONSTINIT static QBasicMutex m; - auto locker = qt_unique_lock(m); -#endif - fprintf(stderr, "%s\n", formattedMessage.toLocal8Bit().constData()); fflush(stderr); }