[Libreoffice-commits] core.git: sw/source

Noel Grandin (via logerrit) logerrit at kemper.freedesktop.org
Thu Apr 2 07:24:09 UTC 2020


 sw/source/uibase/inc/content.hxx   |   15 ---------------
 sw/source/uibase/utlui/content.cxx |    6 ++----
 2 files changed, 2 insertions(+), 19 deletions(-)

New commits:
commit f96ce4da54200dc06d995c82cc1834c0d06241b9
Author:     Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Thu Apr 2 08:37:27 2020 +0200
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Thu Apr 2 09:23:35 2020 +0200

    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 at collabora.co.uk>

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


More information about the Libreoffice-commits mailing list