toolkit: Drop unnecessary XWindow2 param specialization

XWindow2 subclasses XWindow, so there's no need for
a VCLUnoHelper::GetWindow variant taking an XWindow2
reference that does the same as the variant taking
an XWindow reference.

Change-Id: I6f931252d2ae2e046dc31c076094e71b8aa71346
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/185273
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
This commit is contained in:
Michael Weghorn
2025-05-15 06:47:39 +02:00
parent b4b6193ab8
commit d8a908c28f
2 changed files with 0 additions and 7 deletions
-1
View File
@@ -77,7 +77,6 @@ public:
// Window
static vcl::Window* GetWindow( const css::uno::Reference< css::awt::XWindow>& rxWindow );
static vcl::Window* GetWindow( const css::uno::Reference< css::awt::XWindow2>& rxWindow2 );
static vcl::Window* GetWindow( const css::uno::Reference< css::awt::XWindowPeer>& rxWindowPeer );
static css::uno::Reference< css::awt::XWindow> GetInterface( vcl::Window* pWindow );
-6
View File
@@ -80,12 +80,6 @@ vcl::Window* VCLUnoHelper::GetWindow( const css::uno::Reference< css::awt::XWind
return pVCLXWindow ? pVCLXWindow->GetWindow() : nullptr;
}
vcl::Window* VCLUnoHelper::GetWindow( const css::uno::Reference< css::awt::XWindow2>& rxWindow )
{
VCLXWindow* pVCLXWindow = dynamic_cast<VCLXWindow*>( rxWindow.get() );
return pVCLXWindow ? pVCLXWindow->GetWindow() : nullptr;
}
vcl::Window* VCLUnoHelper::GetWindow( const css::uno::Reference< css::awt::XWindowPeer>& rxWindow )
{
VCLXWindow* pVCLXWindow = dynamic_cast<VCLXWindow*>( rxWindow.get() );