From 1737dfa34a38aea05f70b0a1610cb5c3a2eb565c Mon Sep 17 00:00:00 2001 From: Mikolaj Boc Date: Mon, 23 Jan 2023 16:20:32 +0100 Subject: [PATCH] Remove dead code from QWasmCompositor MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Some of the fields and functions are not used now. Remove those. Change-Id: I9313eee37374d82de2a1982a54843a70c58af426 Reviewed-by: Morten Johan Sørvig --- src/plugins/platforms/wasm/qwasmcompositor.h | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/plugins/platforms/wasm/qwasmcompositor.h b/src/plugins/platforms/wasm/qwasmcompositor.h index 211579fb5a..55f93209f3 100644 --- a/src/plugins/platforms/wasm/qwasmcompositor.h +++ b/src/plugins/platforms/wasm/qwasmcompositor.h @@ -37,12 +37,6 @@ public: void initEventHandlers(); - struct QWasmFrameOptions { - QRect rect; - int lineWidth; - QPalette palette; - }; - void addWindow(QWasmWindow *window); void removeWindow(QWasmWindow *window); @@ -61,9 +55,6 @@ public: void requestUpdateAllWindows(); void requestUpdateWindow(QWasmWindow *window, UpdateRequestDeliveryType updateType = ExposeEventDelivery); - void setCapture(QWasmWindow *window); - void releaseCapture(); - void handleBackingStoreFlush(QWindow *window); private: @@ -85,16 +76,11 @@ private: bool processKeyboard(int eventType, const EmscriptenKeyboardEvent *keyEvent); bool processTouch(int eventType, const EmscriptenTouchEvent *touchEvent); - void enterWindow(QWindow *window, const QPoint &localPoint, const QPoint &globalPoint); - void leaveWindow(QWindow *window); - void updateEnabledState(); QWasmWindowStack m_windowStack; bool m_isEnabled = true; - QSize m_targetSize; - qreal m_targetDevicePixelRatio = 1; QMap m_requestUpdateWindows; bool m_requestUpdateAllWindows = false; int m_requestAnimationFrameId = -1;