diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2011-02-04 17:09:40 +0100 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2011-02-06 17:38:48 +0100 |
commit | cac42d3f6aca864da439a83f123638accf2e97cd (patch) | |
tree | 99ad3f972ff7b6def78dbb0fe3a9231947fe917f /chart2/source/tools | |
parent | 1f21015e1546086a2d945a3fb375f44a64ae338f (diff) |
Remove dead code
Diffstat (limited to 'chart2/source/tools')
-rw-r--r-- | chart2/source/tools/LifeTime.cxx | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/chart2/source/tools/LifeTime.cxx b/chart2/source/tools/LifeTime.cxx index 5084e93f605c..51f49e71b7b1 100644 --- a/chart2/source/tools/LifeTime.cxx +++ b/chart2/source/tools/LifeTime.cxx @@ -490,58 +490,6 @@ LifeTimeGuard::~LifeTimeGuard() } } -/* -the XCloseable::close method has to be implemented in the following way: -::close -{ - //hold no mutex - - if( !m_aLifeTimeManager.g_close_startTryClose( bDeliverOwnership ) ) - return; - //no mutex is acquired - - // At the end of this method may we must dispose ourself ... - // and may nobody from outside hold a reference to us ... - // then it's a good idea to do that by ourself. - uno::Reference< uno::XInterface > xSelfHold( static_cast< ::cppu::OWeakObject* >(this) ); - - //the listeners have had no veto - //check wether we self can close - { - util::CloseVetoException aVetoException = util::CloseVetoException( - ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( - "the model itself could not be closed" ) ) - , static_cast< ::cppu::OWeakObject* >(this)); - - if( m_aLifeTimeManager.g_close_isNeedToCancelLongLastingCalls( bDeliverOwnership, aVetoException ) ) - { - ////you can empty this block, if you never start longlasting calls or - ////if your longlasting calls are per default not cancelable (check how you have constructed your LifeTimeManager) - - sal_Bool bLongLastingCallsAreCanceled = sal_False; - try - { - //try to cancel running longlasting calls - //// @todo - } - catch( uno::Exception& ex ) - { - //// @todo - //do not throw anything here!! (without endTryClose) - } - //if not successful canceled - if(!bLongLastingCallsAreCanceled) - { - m_aLifeTimeManager.g_close_endTryClose( bDeliverOwnership, sal_True ); - throw aVetoException; - } - } - - } - m_aLifeTimeManager.g_close_endTryClose_doClose(); -} -*/ - }//end namespace apphelper /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |