diff --git a/src/corelib/text/qlocale.cpp b/src/corelib/text/qlocale.cpp index 7e74712ac7..65af3a012d 100644 --- a/src/corelib/text/qlocale.cpp +++ b/src/corelib/text/qlocale.cpp @@ -720,17 +720,6 @@ QSystemLocale::QSystemLocale() : next(_systemLocale) _systemLocale = this; systemLocaleData.m_language_id = 0; - -#ifdef Q_OS_WASM - onLanguageChanged = std::make_unique( - emscripten::val::global("window"), "languagechange", [](emscripten::val) { - systemLocaleData.m_language_id = 0; - QEvent languageChangeEvent(QEvent::LanguageChange); - QCoreApplication::sendEvent(qApp, &languageChangeEvent); - QEvent localeChangeEvent(QEvent::LocaleChange); - QCoreApplication::sendEvent(qApp, &localeChangeEvent); - }); -#endif } /*! diff --git a/src/corelib/text/qlocale_p.h b/src/corelib/text/qlocale_p.h index aa429e1e3b..ee0a28e94e 100644 --- a/src/corelib/text/qlocale_p.h +++ b/src/corelib/text/qlocale_p.h @@ -106,9 +106,6 @@ struct QLocaleData; class Q_CORE_EXPORT QSystemLocale { QSystemLocale *next = nullptr; // Maintains a stack. -#ifdef Q_OS_WASM - std::unique_ptr onLanguageChanged; -#endif public: QSystemLocale();