summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-10-06 15:56:30 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-10-06 15:56:47 +0100
commit190bfac40e1b7a3b32793ac82eb3e67aefd6c785 (patch)
tree96e886357c8aa30150cf4d37c18954307317c2fa /vcl
parent0f6dbd1b1762e0b273046a045eb902475fc6890b (diff)
callcatcher: update unused code list and drop more old-layouting unuseds
Change-Id: I1096ea50a23040090c9ee2975a4165c6de238497
Diffstat (limited to 'vcl')
-rw-r--r--vcl/inc/vcl/arrange.hxx1
-rw-r--r--vcl/inc/vcl/window.hxx16
-rw-r--r--vcl/source/window/arrange.cxx12
-rw-r--r--vcl/source/window/window4.cxx32
4 files changed, 1 insertions, 60 deletions
diff --git a/vcl/inc/vcl/arrange.hxx b/vcl/inc/vcl/arrange.hxx
index 90316bdd7d09..5d99723da797 100644
--- a/vcl/inc/vcl/arrange.hxx
+++ b/vcl/inc/vcl/arrange.hxx
@@ -317,7 +317,6 @@ namespace vcl
// returns the index of the added label
size_t addRow( Window* i_pLabel, boost::shared_ptr<WindowArranger> const& i_rElement, long i_nIndent = 0 );
- size_t addRow( Window* i_pLabel, Window* i_pElement, long i_nIndent = 0, const Size& i_rElementMinSize = Size() );
};
class VCL_DLLPUBLIC Indenter : public WindowArranger
diff --git a/vcl/inc/vcl/window.hxx b/vcl/inc/vcl/window.hxx
index 0de41b613404..a70ff66f61e4 100644
--- a/vcl/inc/vcl/window.hxx
+++ b/vcl/inc/vcl/window.hxx
@@ -126,7 +126,6 @@ namespace dnd {
namespace vcl {
struct ControlLayoutData;
- class WindowArranger;
struct ExtWindowImpl;
}
@@ -1313,20 +1312,7 @@ public:
// ExtImpl
- // layouting
- boost::shared_ptr< vcl::WindowArranger > getLayout();
-
- /* add a child Window
- addWindow will do the following things
- - insert the passed window into the child list (equivalent to i_pWin->SetParent( this ))
- - mark the window as "owned", meaning that the added Window will be destroyed by
- the parent's desctructor.
- This means: do not pass in member windows or stack objects here. Do not cause
- the destructor of the added window to be called in any way.
-
- to avoid ownership pass i_bTakeOwnership as "false"
- */
- void addWindow( Window* i_pWin, bool i_bTakeOwnership = true );
+ // old layouting, in-process-of-removal
/* return the identifier of this window
*/
diff --git a/vcl/source/window/arrange.cxx b/vcl/source/window/arrange.cxx
index 56ad168ef7e2..d7f79a0872b5 100644
--- a/vcl/source/window/arrange.cxx
+++ b/vcl/source/window/arrange.cxx
@@ -730,18 +730,6 @@ size_t LabelColumn::addRow( Window* i_pLabel, boost::shared_ptr<WindowArranger>
return nIndex;
}
-size_t LabelColumn::addRow( Window* i_pLabel, Window* i_pElement, long i_nIndent, const Size& i_rElementMinSize )
-{
- boost::shared_ptr< LabeledElement > xLabel( new LabeledElement( this, 1 ) );
- xLabel->setLabel( i_pLabel );
- xLabel->setBorders( 0, i_nIndent, 0, 0, 0 );
- xLabel->setElement( i_pElement );
- xLabel->setMinimumSize( 1, i_rElementMinSize );
- size_t nIndex = addChild( xLabel );
- resize();
- return nIndex;
-}
-
// ----------------------------------------
// vcl::Indenter
//-----------------------------------------
diff --git a/vcl/source/window/window4.cxx b/vcl/source/window/window4.cxx
index f0d8f47b2515..af22d6641f1d 100644
--- a/vcl/source/window/window4.cxx
+++ b/vcl/source/window/window4.cxx
@@ -100,38 +100,6 @@ void Window::ImplExtResize()
}
}
-boost::shared_ptr< vcl::WindowArranger > Window::getLayout()
-{
- boost::shared_ptr< vcl::WindowArranger > xRet;
- vcl::ExtWindowImpl* pImpl = ImplGetExtWindowImpl();
- if( pImpl )
- {
- if( ! pImpl->mxLayout.get() )
- {
- pImpl->mxLayout.reset( new vcl::LabelColumn() );
- pImpl->mxLayout->setParentWindow( this );
- pImpl->mxLayout->setOuterBorder( -1 );
- }
- xRet = pImpl->mxLayout;
- }
-
- return xRet;
-}
-
-void Window::addWindow( Window* i_pWin, bool i_bTakeOwnership )
-{
- vcl::ExtWindowImpl* pImpl = ImplGetExtWindowImpl();
- if( pImpl && i_pWin )
- {
- vcl::ExtWindowImpl* pChildImpl = i_pWin->ImplGetExtWindowImpl();
- if( pChildImpl )
- {
- i_pWin->SetParent( this );
- pChildImpl->mbOwnedByParent = i_bTakeOwnership;
- }
- }
-}
-
Window* Window::findWindow( const rtl::OUString& i_rIdentifier ) const
{
if( getIdentifier() == i_rIdentifier )