diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-09-23 08:48:06 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-09-27 11:48:46 +0200 |
commit | 1534025a0386584a7b8f3f929b10ce5eb33257cf (patch) | |
tree | 7f12dd6763148089cd4fb5495c8fffe84f415e12 /editeng/source/uno | |
parent | 0f2e01677cd0e8857faec99c61d71e88eee78b27 (diff) |
loplugin:methodcycles more graph theory for the win
implemeent a reduction approach, which is good at finding virtual
methods that only themselves or their virtual partners.
The accessibility GetVisArea stuff is dead since
commit 891e41fac81fbd8d5cdb277b26639abfd25a7143
Date: Wed Apr 4 11:23:22 2018 +0200
dead code in AccessibleTextHelper_Impl::UpdateVisibleChildren
Change-Id: I78d9d8bca585ecec8394f2c3fe2baa93db0e58f5
Reviewed-on: https://gerrit.libreoffice.org/60912
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'editeng/source/uno')
-rw-r--r-- | editeng/source/uno/unoedprx.cxx | 17 | ||||
-rw-r--r-- | editeng/source/uno/unoviwou.cxx | 28 |
2 files changed, 0 insertions, 45 deletions
diff --git a/editeng/source/uno/unoedprx.cxx b/editeng/source/uno/unoedprx.cxx index 6a109d0c19b0..dc1dbfc69ec7 100644 --- a/editeng/source/uno/unoedprx.cxx +++ b/editeng/source/uno/unoedprx.cxx @@ -679,16 +679,6 @@ EBulletInfo SvxAccessibleTextAdapter::GetBulletInfo( sal_Int32 nPara ) const return mpTextForwarder->GetBulletInfo( nPara ); } -void SvxAccessibleTextAdapter::SetUpdateModeForAcc(bool bUp) -{ - return mpTextForwarder->SetUpdateModeForAcc(bUp); -} - -bool SvxAccessibleTextAdapter::GetUpdateModeForAcc( ) const -{ - return mpTextForwarder->GetUpdateModeForAcc(); -} - tools::Rectangle SvxAccessibleTextAdapter::GetCharBounds( sal_Int32 nPara, sal_Int32 nIndex ) const { assert(mpTextForwarder && "SvxAccessibleTextAdapter: no forwarder"); @@ -1125,13 +1115,6 @@ bool SvxAccessibleTextEditViewAdapter::IsValid() const return false; } -tools::Rectangle SvxAccessibleTextEditViewAdapter::GetVisArea() const -{ - DBG_ASSERT(mpViewForwarder, "SvxAccessibleTextEditViewAdapter: no forwarder"); - - return mpViewForwarder->GetVisArea(); -} - Point SvxAccessibleTextEditViewAdapter::LogicToPixel( const Point& rPoint, const MapMode& rMapMode ) const { DBG_ASSERT(mpViewForwarder, "SvxAccessibleTextEditViewAdapter: no forwarder"); diff --git a/editeng/source/uno/unoviwou.cxx b/editeng/source/uno/unoviwou.cxx index 4da65606f8fe..b437c09479d0 100644 --- a/editeng/source/uno/unoviwou.cxx +++ b/editeng/source/uno/unoviwou.cxx @@ -51,34 +51,6 @@ bool SvxDrawOutlinerViewForwarder::IsValid() const return true; } -tools::Rectangle SvxDrawOutlinerViewForwarder::GetVisArea() const -{ - OutputDevice* pOutDev = mrOutlinerView.GetWindow(); - - if( pOutDev ) - { - tools::Rectangle aVisArea = mrOutlinerView.GetVisArea(); - - Point aTextOffset( GetTextOffset() ); - aVisArea.Move( aTextOffset.X(), aTextOffset.Y() ); - - // figure out map mode from edit engine - Outliner* pOutliner = mrOutlinerView.GetOutliner(); - - if( pOutliner ) - { - MapMode aMapMode(pOutDev->GetMapMode()); - aVisArea = OutputDevice::LogicToLogic( aVisArea, - pOutliner->GetRefMapMode(), - MapMode(aMapMode.GetMapUnit())); - aMapMode.SetOrigin(Point()); - return pOutDev->LogicToPixel( aVisArea, aMapMode ); - } - } - - return tools::Rectangle(); -} - Point SvxDrawOutlinerViewForwarder::LogicToPixel( const Point& rPoint, const MapMode& rMapMode ) const { OutputDevice* pOutDev = mrOutlinerView.GetWindow(); |