vcl/source/treelist/treelist.cxx | 4 ---- 1 file changed, 4 deletions(-)
New commits: commit 45ca47ac39c03df4de52d627a764f16068b1eab0 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Sun Mar 1 16:17:10 2020 +0000 Commit: Caolán McNamara <caol...@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 <caol...@redhat.com> Reviewed-by: Caolán McNamara <caol...@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; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits