summaryrefslogtreecommitdiffstats
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-09-28 21:07:19 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-09-29 09:33:44 +0100
commitc50612d51619fb92393f32c6832628ffbbdcb920 (patch)
tree0f3c7976073cf1eb1dc47545647b91e4d8462097 /vcl
parentWaE: Mark SvXMLExport_Impl and SvXMLImport_Impl as SAL_DLLPRIVATE (diff)
downloadcore-c50612d51619fb92393f32c6832628ffbbdcb920.tar.gz
core-c50612d51619fb92393f32c6832628ffbbdcb920.zip
callcatcher: unused code
Diffstat (limited to 'vcl')
-rw-r--r--vcl/inc/vcl/event.hxx3
-rw-r--r--vcl/source/window/mouseevent.cxx27
2 files changed, 0 insertions, 30 deletions
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: */