summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;