diff --git a/include/svtools/treelistbox.hxx b/include/svtools/treelistbox.hxx index 740731c7e881..093d5206603a 100644 --- a/include/svtools/treelistbox.hxx +++ b/include/svtools/treelistbox.hxx @@ -342,7 +342,6 @@ protected: public: SvTreeListBox( vcl::Window* pParent, WinBits nWinStyle=0 ); - SvTreeListBox( vcl::Window* pParent, const ResId& rResId ); virtual ~SvTreeListBox() override; virtual void dispose() override; diff --git a/svtools/source/contnr/treelistbox.cxx b/svtools/source/contnr/treelistbox.cxx index 0cab871c4086..d025ee62344b 100644 --- a/svtools/source/contnr/treelistbox.cxx +++ b/svtools/source/contnr/treelistbox.cxx @@ -363,37 +363,6 @@ SvTreeListBox::SvTreeListBox(vcl::Window* pParent, WinBits nWinStyle) : SetSublistOpenWithLeftRight(); } -SvTreeListBox::SvTreeListBox(vcl::Window* pParent, const ResId& rResId) : - Control(pParent, rResId), - DropTargetHelper(this), - DragSourceHelper(this), - mpImpl(new SvTreeListBoxImpl(*this)), - mbContextBmpExpanded(false), - mbAlternatingRowColors(false), - mbUpdateAlternatingRows(false), - eSelMode(SelectionMode::NONE), - nMinWidthInChars(0), - mbCenterAndClipText(false) -{ - pTargetEntry = nullptr; - nImpFlags = SvTreeListBoxFlags::NONE; - nDragOptions = DND_ACTION_COPYMOVE | DND_ACTION_LINK; - nDragDropMode = DragDropMode::NONE; - SvTreeList* pTempModel = new SvTreeList; - pTempModel->SetRefCount( 0 ); - SetBaseModel(pTempModel); - pModel->InsertView( this ); - pHdlEntry = nullptr; - pEdCtrl = nullptr; - pModel->SetCloneLink( LINK(this, SvTreeListBox, CloneHdl_Impl )); - SetType(WINDOW_TREELISTBOX); - - InitTreeView(); - Resize(); - - SetSublistOpenWithLeftRight(); -} - VCL_BUILDER_DECL_FACTORY(SvTreeListBox) { WinBits nWinStyle = WB_TABSTOP;