diff options
-rw-r--r-- | vcl/source/window/event.cxx | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/vcl/source/window/event.cxx b/vcl/source/window/event.cxx index a31c8026df15..04a4a7a43bf1 100644 --- a/vcl/source/window/event.cxx +++ b/vcl/source/window/event.cxx @@ -350,16 +350,6 @@ static MouseEvent ImplTranslateMouseEvent( const MouseEvent& rE, vcl::Window* pS return MouseEvent( pDest->ScreenToOutputPixel( aPos ), rE.GetClicks(), rE.GetMode(), rE.GetButtons(), rE.GetModifier() ); } -CommandEvent ImplTranslateCommandEvent( const CommandEvent& rCEvt, vcl::Window* pSource, vcl::Window* pDest ) -{ - if ( !rCEvt.IsMouseEvent() ) - return rCEvt; - - Point aPos = pSource->OutputToScreenPixel( rCEvt.GetMousePosPixel() ); - aPos = pDest->ScreenToOutputPixel( aPos ); - return CommandEvent( aPos, rCEvt.GetCommand(), rCEvt.IsMouseEvent(), rCEvt.GetEventData() ); -} - void Window::ImplNotifyKeyMouseCommandEventListeners( NotifyEvent& rNEvt ) { if( rNEvt.GetType() == MouseNotifyEvent::COMMAND ) |