summaryrefslogtreecommitdiff
path: root/sfx2/source/dialog/partwnd.cxx
diff options
context:
space:
mode:
authorXisco Fauli <anistenis@gmail.com>2011-03-01 16:38:20 +0100
committerThomas Arnhold <thomas@arnhold.org>2011-03-01 16:38:20 +0100
commit846ab4ee7451ac853c752908660605871c795783 (patch)
treea77c740c34695fae3dfe78cb5db15dfa594bb615 /sfx2/source/dialog/partwnd.cxx
parentb479885f3ec5d5b704404c7c30aebb131bbdd7dc (diff)
Remove Dead Code
Diffstat (limited to 'sfx2/source/dialog/partwnd.cxx')
-rw-r--r--sfx2/source/dialog/partwnd.cxx30
1 files changed, 1 insertions, 29 deletions
diff --git a/sfx2/source/dialog/partwnd.cxx b/sfx2/source/dialog/partwnd.cxx
index 9a8dfe5064e3..0f2f14b9eb61 100644
--- a/sfx2/source/dialog/partwnd.cxx
+++ b/sfx2/source/dialog/partwnd.cxx
@@ -95,37 +95,9 @@ SfxPartChildWnd_Impl::~SfxPartChildWnd_Impl()
// and we need a valid pMgr for further operations ...
SfxPartDockWnd_Impl* pWin = (SfxPartDockWnd_Impl*) pWindow;
-// if( pWin != NULL && !xFrame.is() )
-// pWin->ReleaseChildWindow_Impl();
-/*
- // Release frame and window.
- // If frame reference is valid here ... start dieing from inside by calling dispose().
- SetFrame( NULL );
- pWindow = NULL;
-*/
+
if ( pWin && xFrame == pWin->GetBindings().GetActiveFrame() )
pWin->GetBindings().SetActiveFrame( NULL );
-/*
- if( xFrame.is() )
- {
- try
- {
- ::com::sun::star::uno::Reference< ::com::sun::star::util::XCloseable > xCloseable ( xFrame, ::com::sun::star::uno::UNO_QUERY );
- ::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent > xDisposeable( xFrame, ::com::sun::star::uno::UNO_QUERY );
- if (xCloseable.is())
- xCloseable->close(sal_True);
- else
- if (xDisposeable.is())
- xDisposeable->dispose();
- }
- catch( ::com::sun::star::util::CloseVetoException& )
- {
- }
- catch( ::com::sun::star::lang::DisposedException& )
- {
- }
- }
- */
}
sal_Bool SfxPartChildWnd_Impl::QueryClose()