[Libreoffice-commits] core.git: vcl/source

Chris Sherlock chris.sherlock79 at gmail.com
Wed Feb 10 10:46:43 UTC 2016


 vcl/source/window/event.cxx |   10 ----------
 1 file changed, 10 deletions(-)

New commits:
commit aadc603afeca5657da9903ccb52e89cbb3ba5611
Author: Chris Sherlock <chris.sherlock79 at gmail.com>
Date:   Wed Feb 10 21:45:39 2016 +1100

    vcl: actually remove ImplTranslateCommandEvent!
    
    Change-Id: Ic120f83c5809074d082a86f677790ce9df35abcb

diff --git a/vcl/source/window/event.cxx b/vcl/source/window/event.cxx
index a31c802..04a4a7a 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 )


More information about the Libreoffice-commits mailing list