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

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Sun Mar 1 19:15:41 UTC 2020


 vcl/source/treelist/treelist.cxx |    4 ----
 1 file changed, 4 deletions(-)

New commits:
commit 45ca47ac39c03df4de52d627a764f16068b1eab0
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Sun Mar 1 16:17:10 2020 +0000
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Sun Mar 1 20:15:06 2020 +0100

    nDepth is only written to, not read
    
    Change-Id: Idf6f038e535f48558b04f3aea63c01c9e164ee8c
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89779
    Tested-by: Caolán McNamara <caolanm at redhat.com>
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/vcl/source/treelist/treelist.cxx b/vcl/source/treelist/treelist.cxx
index 681bef4d0c7d..6d10ccac7f6f 100644
--- a/vcl/source/treelist/treelist.cxx
+++ b/vcl/source/treelist/treelist.cxx
@@ -526,8 +526,6 @@ SvTreeListEntry* SvTreeList::Prev( SvTreeListEntry* pActEntry ) const
 {
     DBG_ASSERT(pActEntry!=nullptr,"Entry?");
 
-    sal_uInt16 nDepth = 0;
-
     SvTreeListEntries* pActualList = &pActEntry->pParent->m_Children;
     sal_uLong nActualPos = pActEntry->GetChildListPos();
 
@@ -537,7 +535,6 @@ SvTreeListEntry* SvTreeList::Prev( SvTreeListEntry* pActEntry ) const
         while (!pActEntry->m_Children.empty())
         {
             pActualList = &pActEntry->m_Children;
-            nDepth++;
             pActEntry = pActualList->back().get();
         }
         return pActEntry;
@@ -549,7 +546,6 @@ SvTreeListEntry* SvTreeList::Prev( SvTreeListEntry* pActEntry ) const
 
     if ( pActEntry )
     {
-        nDepth--;
         return pActEntry;
     }
     return nullptr;


More information about the Libreoffice-commits mailing list