vcl/source/treelist/treelist.cxx | 4 ---- 1 file changed, 4 deletions(-)
New commits: commit 47a3fec2115fcb8066bbb756f8f6391d94dc04bf Author: Stephan Bergmann <sberg...@redhat.com> AuthorDate: Mon Mar 28 14:34:11 2022 +0200 Commit: Stephan Bergmann <sberg...@redhat.com> CommitDate: Mon Mar 28 16:35:24 2022 +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 9c111bf99893..35125edafe2e 100644 --- a/vcl/source/treelist/treelist.cxx +++ b/vcl/source/treelist/treelist.cxx @@ -673,8 +673,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(); @@ -684,7 +682,6 @@ SvTreeListEntry* SvTreeList::PrevVisible(const SvListView* pView, SvTreeListEntr while( pView->IsExpanded(pActEntry) ) { pActualList = &pActEntry->m_Children; - nDepth++; pActEntry = pActualList->back().get(); } return pActEntry; @@ -696,7 +693,6 @@ SvTreeListEntry* SvTreeList::PrevVisible(const SvListView* pView, SvTreeListEntr pActEntry = pActEntry->pParent; if ( pActEntry ) { - nDepth--; return pActEntry; } return nullptr;