diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-06-24 13:09:42 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-06-24 22:16:24 +0200 |
commit | 7e4a3eee79b49216696f8c51bf833eee3e06a803 (patch) | |
tree | 9a6ceee7e11d2ceeb402303e4cf696c86defd05a /vcl | |
parent | efa19c9a5004699d844d108e2bf0dce845d48959 (diff) |
loplugin:unusedmethods
Change-Id: Ib724da1f07be9e8f4d0d505f7f2886990cab661f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97022
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/inc/calendar.hxx | 4 | ||||
-rw-r--r-- | vcl/osx/a11yfocustracker.cxx | 6 | ||||
-rw-r--r-- | vcl/source/app/vclevent.cxx | 15 | ||||
-rw-r--r-- | vcl/source/control/calendar.cxx | 8 | ||||
-rw-r--r-- | vcl/source/treelist/treelistbox.cxx | 1 | ||||
-rw-r--r-- | vcl/source/window/builder.cxx | 62 | ||||
-rw-r--r-- | vcl/source/window/event.cxx | 5 | ||||
-rw-r--r-- | vcl/unx/gtk3/a11y/gtk3atkutil.cxx | 6 |
8 files changed, 0 insertions, 107 deletions
diff --git a/vcl/inc/calendar.hxx b/vcl/inc/calendar.hxx index 68078b70775a..22cc1ddc9fd2 100644 --- a/vcl/inc/calendar.hxx +++ b/vcl/inc/calendar.hxx @@ -210,7 +210,6 @@ public: void Select(); Date GetFirstSelectedDate() const; - void EnableCallEverySelect() { mbAllSel = true; } void SetCurDate( const Date& rNewDate ); void SetFirstDate( const Date& rNewFirstDate ); @@ -222,11 +221,8 @@ public: bool GetDate( const Point& rPos, Date& rDate ) const; tools::Rectangle GetDateRect( const Date& rDate ) const; - void StartSelection(); void EndSelection(); - bool IsTravelSelect() const { return mbTravelSelect; } - Size CalcWindowSizePixel() const; void SetSelectHdl( const Link<Calendar*,void>& rLink ) { maSelectHdl = rLink; } diff --git a/vcl/osx/a11yfocustracker.cxx b/vcl/osx/a11yfocustracker.cxx index 057169a3016d..000a4f04fd59 100644 --- a/vcl/osx/a11yfocustracker.cxx +++ b/vcl/osx/a11yfocustracker.cxx @@ -76,12 +76,6 @@ void AquaA11yFocusTracker::WindowEventHandler(void * pThis, VclSimpleEvent& rEve { pFocusTracker->menu_highlighted( pMenuEvent ); } - else if( const VclAccessibleEvent* pAccEvent = dynamic_cast < const VclAccessibleEvent* > (&rEvent) ) - { - Reference< XAccessible > xAccessible = pAccEvent->GetAccessible(); - if( xAccessible.is() ) - pFocusTracker->setFocusedObject( xAccessible ); - } break; default: break; diff --git a/vcl/source/app/vclevent.cxx b/vcl/source/app/vclevent.cxx index b99a56a4fc0c..94cf37c638d3 100644 --- a/vcl/source/app/vclevent.cxx +++ b/vcl/source/app/vclevent.cxx @@ -23,21 +23,6 @@ #include <vcleventlisteners.hxx> -using ::com::sun::star::uno::Reference; -using ::com::sun::star::accessibility::XAccessible; - - -VclAccessibleEvent::VclAccessibleEvent( VclEventId n, const Reference<XAccessible>& rxAccessible ) : - VclSimpleEvent(n), - mxAccessible(rxAccessible) -{ -} - -VclAccessibleEvent::~VclAccessibleEvent() -{ -} - - void VclEventListeners::Call( VclSimpleEvent& rEvent ) const { if ( m_aListeners.empty() ) diff --git a/vcl/source/control/calendar.cxx b/vcl/source/control/calendar.cxx index 35a6f79462dc..d8d3d1f88c01 100644 --- a/vcl/source/control/calendar.cxx +++ b/vcl/source/control/calendar.cxx @@ -1502,14 +1502,6 @@ tools::Rectangle Calendar::GetDateRect( const Date& rDate ) const return aRect; } -void Calendar::StartSelection() -{ - maOldCurDate = maCurDate; - mpOldSelectTable.reset(new IntDateSet( *mpSelectTable )); - - mbSelection = true; -} - void Calendar::EndSelection() { if ( mbDrag || mbSpinDown || mbSelection ) diff --git a/vcl/source/treelist/treelistbox.cxx b/vcl/source/treelist/treelistbox.cxx index b5db11fc4289..f52f1c86232b 100644 --- a/vcl/source/treelist/treelistbox.cxx +++ b/vcl/source/treelist/treelistbox.cxx @@ -1800,7 +1800,6 @@ SvButtonState SvTreeListBox::GetCheckButtonState( SvTreeListEntry* pEntry ) cons void SvTreeListBox::CheckButtonHdl() { - aCheckButtonHdl.Call( this ); if ( pCheckButtonData ) pImpl->CallEventListeners( VclEventId::CheckboxToggle, static_cast<void*>(pCheckButtonData->GetActEntry()) ); } diff --git a/vcl/source/window/builder.cxx b/vcl/source/window/builder.cxx index fd603fec5ee1..663eb7a40bcb 100644 --- a/vcl/source/window/builder.cxx +++ b/vcl/source/window/builder.cxx @@ -4396,68 +4396,6 @@ void VclBuilder::mungeAdjustment(FormattedField &rTarget, const Adjustment &rAdj rTarget.SetSpinSize(nSpinSize); } -void VclBuilder::mungeAdjustment(TimeField &rTarget, const Adjustment &rAdjustment) -{ - for (auto const& elem : rAdjustment) - { - const OString &rKey = elem.first; - const OUString &rValue = elem.second; - - if (rKey == "upper") - { - tools::Time aUpper(rValue.toInt32()); - rTarget.SetMax(aUpper); - rTarget.SetLast(aUpper); - } - else if (rKey == "lower") - { - tools::Time aLower(rValue.toInt32()); - rTarget.SetMin(aLower); - rTarget.SetFirst(aLower); - } - else if (rKey == "value") - { - tools::Time aValue(rValue.toInt32()); - rTarget.SetTime(aValue); - } - else - { - SAL_INFO("vcl.builder", "unhandled property :" << rKey); - } - } -} - -void VclBuilder::mungeAdjustment(DateField &rTarget, const Adjustment &rAdjustment) -{ - for (auto const& elem : rAdjustment) - { - const OString &rKey = elem.first; - const OUString &rValue = elem.second; - - if (rKey == "upper") - { - Date aUpper(rValue.toInt32()); - rTarget.SetMax(aUpper); - rTarget.SetLast(aUpper); - } - else if (rKey == "lower") - { - Date aLower(rValue.toInt32()); - rTarget.SetMin(aLower); - rTarget.SetFirst(aLower); - } - else if (rKey == "value") - { - Date aValue(rValue.toInt32()); - rTarget.SetDate(aValue); - } - else - { - SAL_INFO("vcl.builder", "unhandled property :" << rKey); - } - } -} - void VclBuilder::mungeAdjustment(ScrollBar &rTarget, const Adjustment &rAdjustment) { for (auto const& elem : rAdjustment) diff --git a/vcl/source/window/event.cxx b/vcl/source/window/event.cxx index 23bb7b00a43c..4f31a2ebf768 100644 --- a/vcl/source/window/event.cxx +++ b/vcl/source/window/event.cxx @@ -298,11 +298,6 @@ void Window::CallEventListeners( VclEventId nEvent, void* pData ) } } -void Window::FireVclEvent( VclSimpleEvent& rEvent ) -{ - Application::ImplCallEventListeners(rEvent); -} - void Window::AddEventListener( const Link<VclWindowEvent&,void>& rEventListener ) { mpWindowImpl->maEventListeners.push_back( rEventListener ); diff --git a/vcl/unx/gtk3/a11y/gtk3atkutil.cxx b/vcl/unx/gtk3/a11y/gtk3atkutil.cxx index 1d1337d6e800..699f9aee1695 100644 --- a/vcl/unx/gtk3/a11y/gtk3atkutil.cxx +++ b/vcl/unx/gtk3/a11y/gtk3atkutil.cxx @@ -646,12 +646,6 @@ static void WindowEventHandler(void *, VclSimpleEvent& rEvent) { handle_menu_highlighted(pMenuEvent); } - else if (const VclAccessibleEvent* pAccEvent = dynamic_cast<const VclAccessibleEvent*>(&rEvent)) - { - const uno::Reference< accessibility::XAccessible >& xAccessible = pAccEvent->GetAccessible(); - if (xAccessible.is()) - atk_wrapper_focus_tracker_notify_when_idle(xAccessible); - } break; case VclEventId::ToolboxHighlight: |