diff options
author | RĂ¼diger Timm <rt@openoffice.org> | 2008-07-07 10:56:48 +0000 |
---|---|---|
committer | RĂ¼diger Timm <rt@openoffice.org> | 2008-07-07 10:56:48 +0000 |
commit | 9fb2cec81c6befb1b2687738634d55b192be3289 (patch) | |
tree | dc05aa664d4bdf99a33e3fadf993362ffdffb9fa /scripting/source/provider/ActiveMSPList.cxx | |
parent | b769ccbe4fb743a33f064ded8ea0e9dfcfc5e2c8 (diff) |
INTEGRATION: CWS ab53 (1.15.12); FILE MERGED
2008/06/06 12:39:58 ab 1.15.12.1: #i90005# Removed unused code
Diffstat (limited to 'scripting/source/provider/ActiveMSPList.cxx')
-rw-r--r-- | scripting/source/provider/ActiveMSPList.cxx | 30 |
1 files changed, 1 insertions, 29 deletions
diff --git a/scripting/source/provider/ActiveMSPList.cxx b/scripting/source/provider/ActiveMSPList.cxx index 7094510ca644..4751cd4c929c 100644 --- a/scripting/source/provider/ActiveMSPList.cxx +++ b/scripting/source/provider/ActiveMSPList.cxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: ActiveMSPList.cxx,v $ - * $Revision: 1.15 $ + * $Revision: 1.16 $ * * This file is part of OpenOffice.org. * @@ -80,34 +80,6 @@ ActiveMSPList::createNewMSP( const uno::Any& context ) return msp; } -Sequence < Reference< provider::XScriptProvider > > -ActiveMSPList::getActiveProviders() -{ - ::osl::MutexGuard guard( m_mutex ); - - sal_Int32 numChildNodes = m_hMsps.size() + m_mScriptComponents.size(); - // get providers for application - Msp_hash::iterator h_itEnd = m_hMsps.end(); - Sequence< Reference< provider::XScriptProvider > > children( numChildNodes ); - sal_Int32 count = 0; - - - for ( Msp_hash::iterator h_it = m_hMsps.begin(); h_it != h_itEnd; ++h_it ) - { - children[ count++ ] = h_it->second; - } - - // get providers for active documents - ScriptComponent_map::iterator m_itEnd = m_mScriptComponents.end(); - - for ( ScriptComponent_map::iterator m_it = m_mScriptComponents.begin(); m_it != m_itEnd; ++m_it ) - { - children[ count++ ] = m_it->second; - } - return children; -} - - Reference< provider::XScriptProvider > ActiveMSPList::getMSPFromAnyContext( const Any& aContext ) SAL_THROW(( lang::IllegalArgumentException, RuntimeException )) |