summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-07-03 10:19:21 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-07-03 11:19:00 +0200
commit79cb267812f0c22919fddc4d60d381fa649f8d05 (patch)
treedc93ce86f276270fa45c7eb310b3b35c9975cfd9 /svtools
parente119194aeec907f3d02cb914e5afde5ac763df7c (diff)
no need to switch models in the SvTreeListBox
since we're replacing it completely anyhow. which means we can remove DisconnectFromModel Change-Id: I2f31d93eb95a641f3364d715111e70817c7e5087 Reviewed-on: https://gerrit.libreoffice.org/56849 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/contnr/treelistbox.cxx9
1 files changed, 0 insertions, 9 deletions
diff --git a/svtools/source/contnr/treelistbox.cxx b/svtools/source/contnr/treelistbox.cxx
index 5d9bc907ae24..716a1a2cc00b 100644
--- a/svtools/source/contnr/treelistbox.cxx
+++ b/svtools/source/contnr/treelistbox.cxx
@@ -1402,15 +1402,6 @@ void SvTreeListBox::SetBaseModel( SvTreeList* pNewModel )
}
}
-void SvTreeListBox::DisconnectFromModel()
-{
- SvTreeList* pNewModel = new SvTreeList;
- pNewModel->SetRefCount( 0 ); // else this will never be deleted
- SvListView::SetModel( pNewModel );
-
- pImpl->SetModel( GetModel() );
-}
-
void SvTreeListBox::SetSublistOpenWithReturn()
{
pImpl->bSubLstOpRet = true;