From c50612d51619fb92393f32c6832628ffbbdcb920 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 28 Sep 2011 21:07:19 +0100 Subject: callcatcher: unused code --- vcl/inc/vcl/event.hxx | 3 --- vcl/source/window/mouseevent.cxx | 27 --------------------------- 2 files changed, 30 deletions(-) (limited to 'vcl') diff --git a/vcl/inc/vcl/event.hxx b/vcl/inc/vcl/event.hxx index 9e8666ea7c78..2fe32e7c9d55 100644 --- a/vcl/inc/vcl/event.hxx +++ b/vcl/inc/vcl/event.hxx @@ -143,9 +143,6 @@ public: /** inits this vcl KeyEvent with all settings from the given awt event **/ MouseEvent( const ::com::sun::star::awt::MouseEvent& rEvent ); - /** fills out the given awt KeyEvent with all settings from this vcl event **/ - void InitMouseEvent( ::com::sun::star::awt::MouseEvent& rEvent ) const; - sal_uInt16 GetClicks() const { return mnClicks; } sal_Bool IsEnterWindow() const diff --git a/vcl/source/window/mouseevent.cxx b/vcl/source/window/mouseevent.cxx index 2e76750e1cf5..220bad75496f 100644 --- a/vcl/source/window/mouseevent.cxx +++ b/vcl/source/window/mouseevent.cxx @@ -65,31 +65,4 @@ MouseEvent::MouseEvent( const ::com::sun::star::awt::MouseEvent& rEvent ) } } -/** fills out the given awt KeyEvent with all settings from this vcl event **/ -void MouseEvent::InitMouseEvent( ::com::sun::star::awt::MouseEvent& rEvent ) const -{ - rEvent.Modifiers = 0; - if ( IsShift() ) - rEvent.Modifiers |= ::com::sun::star::awt::KeyModifier::SHIFT; - if ( IsMod1() ) - rEvent.Modifiers |= ::com::sun::star::awt::KeyModifier::MOD1; - if ( IsMod2() ) - rEvent.Modifiers |= ::com::sun::star::awt::KeyModifier::MOD2; - if ( IsMod3() ) - rEvent.Modifiers |= ::com::sun::star::awt::KeyModifier::MOD3; - - rEvent.Buttons = 0; - if ( IsLeft() ) - rEvent.Buttons |= ::com::sun::star::awt::MouseButton::LEFT; - if ( IsRight() ) - rEvent.Buttons |= ::com::sun::star::awt::MouseButton::RIGHT; - if ( IsMiddle() ) - rEvent.Buttons |= ::com::sun::star::awt::MouseButton::MIDDLE; - - rEvent.X = GetPosPixel().X(); - rEvent.Y = GetPosPixel().Y(); - rEvent.ClickCount = GetClicks(); - rEvent.PopupTrigger = sal_False; -} - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit