diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-04-02 08:37:27 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-04-02 09:23:35 +0200 |
commit | f96ce4da54200dc06d995c82cc1834c0d06241b9 (patch) | |
tree | 52199d1156c05e0435354309eb725b79e4d33397 /sw | |
parent | 38b6cef2d3fe707cbc7bc79399db4524176eda07 (diff) |
SwRegionContent is unnecessary
after
commit 5a2c0ab29719ac914d30d8789c0e386541702cbf
Date: Fri Feb 28 11:13:12 2020 +0000
weld writer navigator
found by loplugin:unusedmethods
Change-Id: Icbfa9de744f43fc36a2d19213185928090342f4c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91542
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/uibase/inc/content.hxx | 15 | ||||
-rw-r--r-- | sw/source/uibase/utlui/content.cxx | 6 |
2 files changed, 2 insertions, 19 deletions
diff --git a/sw/source/uibase/inc/content.hxx b/sw/source/uibase/inc/content.hxx index 414db7068dcb..4bb37efaa544 100644 --- a/sw/source/uibase/inc/content.hxx +++ b/sw/source/uibase/inc/content.hxx @@ -53,21 +53,6 @@ class SwOutlineContent : public SwContent bool IsMoveable() const {return bIsMoveable;}; }; -class SwRegionContent : public SwContent -{ - - sal_uInt8 nRegionLevel; - - public: - SwRegionContent( const SwContentType* pCnt, - const OUString& rName, - sal_uInt8 nLevel, - long nYPos) : - SwContent(pCnt, rName, nYPos), - nRegionLevel(nLevel){} - sal_uInt8 GetRegionLevel() const {return nRegionLevel;} -}; - class SwURLFieldContent : public SwContent { OUString sURL; diff --git a/sw/source/uibase/utlui/content.cxx b/sw/source/uibase/utlui/content.cxx index 366816e032f2..fa20a29864ff 100644 --- a/sw/source/uibase/utlui/content.cxx +++ b/sw/source/uibase/utlui/content.cxx @@ -369,8 +369,7 @@ void SwContentType::Init(bool* pbInvalidateWindow) pParentFormat = pParentFormat->GetParent(); } - std::unique_ptr<SwContent> pCnt(new SwRegionContent(this, rSectionName, - nLevel, + std::unique_ptr<SwContent> pCnt(new SwContent(this, rSectionName, pFormat->FindLayoutRect( false, &aNullPt ).Top())); SwPtrMsgPoolItem aAskItem( RES_CONTENT_VISIBLE, nullptr ); @@ -675,8 +674,7 @@ void SwContentType::FillMemberList(bool* pbLevelOrVisibilityChanged) pParentFormat = pParentFormat->GetParent(); } - std::unique_ptr<SwContent> pCnt(new SwRegionContent(this, sSectionName, - nLevel, + std::unique_ptr<SwContent> pCnt(new SwContent(this, sSectionName, pFormat->FindLayoutRect( false, &aNullPt ).Top())); if( !pFormat->GetInfo( aAskItem ) && !aAskItem.pObject ) // not visible |