summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2022-03-28 14:34:11 +0200
committerStephan Bergmann <sbergman@redhat.com>2022-03-28 16:35:24 +0200
commit47a3fec2115fcb8066bbb756f8f6391d94dc04bf (patch)
treec7c0438b84421d1397810e42b37143abebdc5174 /vcl
parentf891cecab59179efdb1e3153752f744db0a420ad (diff)
-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 <sbergman@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/treelist/treelist.cxx4
1 files changed, 0 insertions, 4 deletions
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;