From 9bf689e875ce1f5e80696cbc86d446074b01c705 Mon Sep 17 00:00:00 2001 From: Mikolaj Boc Date: Wed, 17 Aug 2022 08:38:54 +0200 Subject: Remove dead code & cull public API in WASM compositor MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Remove the manual destroy methods - destructor should handle destruction - Remove the unused enum QWasmStateFlag - Make public API private where possible - Adjust handleTouch->processTouch to keep consistency with other process methods - Remove dead fields in compositor - Don't keep a dead screen entry in m_screens in qwasmintegration Change-Id: I98caf4dbdda5ebd25c4a9c22a40140c7ed1d7aa7 Reviewed-by: Morten Johan Sørvig --- src/plugins/platforms/wasm/qwasmintegration.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/plugins/platforms/wasm/qwasmintegration.cpp') diff --git a/src/plugins/platforms/wasm/qwasmintegration.cpp b/src/plugins/platforms/wasm/qwasmintegration.cpp index a29e18e98a..2cec4821f0 100644 --- a/src/plugins/platforms/wasm/qwasmintegration.cpp +++ b/src/plugins/platforms/wasm/qwasmintegration.cpp @@ -311,6 +311,7 @@ void QWasmIntegration::removeScreen(const emscripten::val &element) return; } it->second->deleteScreen(); + m_screens.erase(it); } void QWasmIntegration::resizeScreen(const emscripten::val &element) -- cgit v1.2.3