From 5c5873c68f7b94c7f691ca18bb91e961521390de Mon Sep 17 00:00:00 2001 From: Hiroyuki Ikezoe Date: Wed, 5 Jan 2022 09:08:04 +0000 Subject: [PATCH] Bug 1348786 - Drop nsWindow::DispatchWindowEvent(WidgetGUIEvent*, nsEventStatus&). r=masayuki It's not used at all. Differential Revision: https://phabricator.services.mozilla.com/D134358 --- widget/windows/nsWindow.cpp | 6 ------ widget/windows/nsWindow.h | 2 -- 2 files changed, 8 deletions(-) diff --git a/widget/windows/nsWindow.cpp b/widget/windows/nsWindow.cpp index 07ed44699641..bd717c2d9d0c 100644 --- a/widget/windows/nsWindow.cpp +++ b/widget/windows/nsWindow.cpp @@ -4319,12 +4319,6 @@ bool nsWindow::DispatchWindowEvent(WidgetGUIEvent* event) { return ConvertStatus(status); } -bool nsWindow::DispatchWindowEvent(WidgetGUIEvent* event, - nsEventStatus& aStatus) { - DispatchEvent(event, aStatus); - return ConvertStatus(aStatus); -} - // Recursively dispatch synchronous paints for nsIWidget // descendants with invalidated rectangles. BOOL CALLBACK nsWindow::DispatchStarvedPaints(HWND aWnd, LPARAM aMsg) { diff --git a/widget/windows/nsWindow.h b/widget/windows/nsWindow.h index 7ffb112fcdff..1de0af5e0177 100644 --- a/widget/windows/nsWindow.h +++ b/widget/windows/nsWindow.h @@ -270,8 +270,6 @@ class nsWindow final : public nsWindowBase { uint16_t aInputSource, WinPointerInfo* aPointerInfo = nullptr, bool aIgnoreAPZ = false); - virtual bool DispatchWindowEvent(mozilla::WidgetGUIEvent* aEvent, - nsEventStatus& aStatus); void DispatchPendingEvents(); void DispatchCustomEvent(const nsString& eventName);