vcl/source/treelist/treelist.cxx | 4 ---- 1 file changed, 4 deletions(-)
New commits: commit 150246a7c5a476ab78fadee4c5fe99aeb1670f83 Author: Stephan Bergmann <sberg...@redhat.com> AuthorDate: Mon Mar 28 14:34:11 2022 +0200 Commit: Andras Timar <andras.ti...@collabora.com> CommitDate: Fri Jul 7 10:27:29 2023 +0200 -Werror,-Wunused-but-set-variable ...since fb6c99f21e03afb85d00459ca1e1abb07e71d126 "loplugin:unuseddefaultparam in svtools" Change-Id: I08da150389bfe8dad09ca293a8f445020c3a51ed Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132208 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sberg...@redhat.com> diff --git a/vcl/source/treelist/treelist.cxx b/vcl/source/treelist/treelist.cxx index a876b0675980..25468b2edaf9 100644 --- a/vcl/source/treelist/treelist.cxx +++ b/vcl/source/treelist/treelist.cxx @@ -675,8 +675,6 @@ SvTreeListEntry* SvTreeList::PrevVisible(const SvListView* pView, SvTreeListEntr { DBG_ASSERT(pView&&pActEntry,"PrevVis:View/Entry?"); - sal_uInt16 nDepth = 0; - SvTreeListEntries* pActualList = &pActEntry->pParent->m_Children; sal_uInt32 nActualPos = pActEntry->GetChildListPos(); @@ -686,7 +684,6 @@ SvTreeListEntry* SvTreeList::PrevVisible(const SvListView* pView, SvTreeListEntr while( pView->IsExpanded(pActEntry) ) { pActualList = &pActEntry->m_Children; - nDepth++; pActEntry = pActualList->back().get(); } return pActEntry; @@ -698,7 +695,6 @@ SvTreeListEntry* SvTreeList::PrevVisible(const SvListView* pView, SvTreeListEntr pActEntry = pActEntry->pParent; if ( pActEntry ) { - nDepth--; return pActEntry; } return nullptr;