From e57ca02849c3d87142ff5ff9099a212e72b8139c Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 26 Jan 2017 12:28:58 +0100 Subject: Remove dynamic exception specifications ...(for now, from LIBO_INTERNAL_CODE only). See the mail thread starting at "Dynamic Exception Specifications" for details. Most changes have been done automatically by the rewriting loplugin:dynexcspec (after enabling the rewriting mode, to be committed shortly). The way it only removes exception specs from declarations if it also sees a definition, it identified some dead declarations-w/o-definitions (that have been removed manually) and some cases where a definition appeared in multiple include files (which have also been cleaned up manually). There's also been cases of macro paramters (that were used to abstract over exception specs) that have become unused now (and been removed). Furthermore, some code needed to be cleaned up manually (avmedia/source/quicktime/ and connectivity/source/drivers/kab/), as I had no configurations available that would actually build that code. Missing @throws documentation has not been applied in such manual clean-up. Change-Id: I3408691256c9b0c12bc5332de976743626e13960 Reviewed-on: https://gerrit.libreoffice.org/33574 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- embeddedobj/source/general/dummyobject.cxx | 87 ------------------------------ 1 file changed, 87 deletions(-) (limited to 'embeddedobj/source/general/dummyobject.cxx') diff --git a/embeddedobj/source/general/dummyobject.cxx b/embeddedobj/source/general/dummyobject.cxx index 8566ebbdca45..c48f62f49adc 100644 --- a/embeddedobj/source/general/dummyobject.cxx +++ b/embeddedobj/source/general/dummyobject.cxx @@ -96,10 +96,6 @@ ODummyEmbeddedObject::~ODummyEmbeddedObject() void SAL_CALL ODummyEmbeddedObject::changeState( sal_Int32 nNewState ) - throw ( embed::UnreachableStateException, - embed::WrongStateException, - uno::Exception, - uno::RuntimeException, std::exception ) { ::osl::MutexGuard aGuard( m_aMutex ); CheckInit_WrongState(); @@ -112,8 +108,6 @@ void SAL_CALL ODummyEmbeddedObject::changeState( sal_Int32 nNewState ) uno::Sequence< sal_Int32 > SAL_CALL ODummyEmbeddedObject::getReachableStates() - throw ( embed::WrongStateException, - uno::RuntimeException, std::exception ) { ::osl::MutexGuard aGuard( m_aMutex ); CheckInit_WrongState(); @@ -126,8 +120,6 @@ uno::Sequence< sal_Int32 > SAL_CALL ODummyEmbeddedObject::getReachableStates() sal_Int32 SAL_CALL ODummyEmbeddedObject::getCurrentState() - throw ( embed::WrongStateException, - uno::RuntimeException, std::exception ) { ::osl::MutexGuard aGuard( m_aMutex ); CheckInit_WrongState(); @@ -137,11 +129,6 @@ sal_Int32 SAL_CALL ODummyEmbeddedObject::getCurrentState() void SAL_CALL ODummyEmbeddedObject::doVerb( sal_Int32 ) - throw ( lang::IllegalArgumentException, - embed::WrongStateException, - embed::UnreachableStateException, - uno::Exception, - uno::RuntimeException, std::exception ) { ::osl::MutexGuard aGuard( m_aMutex ); CheckInit_WrongState(); @@ -151,8 +138,6 @@ void SAL_CALL ODummyEmbeddedObject::doVerb( sal_Int32 ) uno::Sequence< embed::VerbDescriptor > SAL_CALL ODummyEmbeddedObject::getSupportedVerbs() - throw ( embed::WrongStateException, - uno::RuntimeException, std::exception ) { ::osl::MutexGuard aGuard( m_aMutex ); CheckInit_WrongState(); @@ -163,8 +148,6 @@ uno::Sequence< embed::VerbDescriptor > SAL_CALL ODummyEmbeddedObject::getSupport void SAL_CALL ODummyEmbeddedObject::setClientSite( const uno::Reference< embed::XEmbeddedClient >& xClient ) - throw ( embed::WrongStateException, - uno::RuntimeException, std::exception ) { ::osl::MutexGuard aGuard( m_aMutex ); CheckInit_WrongState(); @@ -174,8 +157,6 @@ void SAL_CALL ODummyEmbeddedObject::setClientSite( uno::Reference< embed::XEmbeddedClient > SAL_CALL ODummyEmbeddedObject::getClientSite() - throw ( embed::WrongStateException, - uno::RuntimeException, std::exception ) { ::osl::MutexGuard aGuard( m_aMutex ); CheckInit_WrongState(); @@ -185,9 +166,6 @@ uno::Reference< embed::XEmbeddedClient > SAL_CALL ODummyEmbeddedObject::getClien void SAL_CALL ODummyEmbeddedObject::update() - throw ( embed::WrongStateException, - uno::Exception, - uno::RuntimeException, std::exception ) { ::osl::MutexGuard aGuard( m_aMutex ); CheckInit_WrongState(); @@ -195,8 +173,6 @@ void SAL_CALL ODummyEmbeddedObject::update() void SAL_CALL ODummyEmbeddedObject::setUpdateMode( sal_Int32 ) - throw ( embed::WrongStateException, - uno::RuntimeException, std::exception ) { ::osl::MutexGuard aGuard( m_aMutex ); CheckInit_WrongState(); @@ -204,8 +180,6 @@ void SAL_CALL ODummyEmbeddedObject::setUpdateMode( sal_Int32 ) sal_Int64 SAL_CALL ODummyEmbeddedObject::getStatus( sal_Int64 ) - throw ( embed::WrongStateException, - uno::RuntimeException, std::exception ) { ::osl::MutexGuard aGuard( m_aMutex ); CheckInit_WrongState(); @@ -215,7 +189,6 @@ sal_Int64 SAL_CALL ODummyEmbeddedObject::getStatus( sal_Int64 ) void SAL_CALL ODummyEmbeddedObject::setContainerName( const OUString& ) - throw ( uno::RuntimeException, std::exception ) { ::osl::MutexGuard aGuard( m_aMutex ); CheckInit_Runtime(); @@ -223,10 +196,6 @@ void SAL_CALL ODummyEmbeddedObject::setContainerName( const OUString& ) void SAL_CALL ODummyEmbeddedObject::setVisualAreaSize( sal_Int64 nAspect, const awt::Size& aSize ) - throw ( lang::IllegalArgumentException, - embed::WrongStateException, - uno::Exception, - uno::RuntimeException, std::exception ) { ::osl::MutexGuard aGuard( m_aMutex ); CheckInit_WrongState(); @@ -244,10 +213,6 @@ void SAL_CALL ODummyEmbeddedObject::setVisualAreaSize( sal_Int64 nAspect, const awt::Size SAL_CALL ODummyEmbeddedObject::getVisualAreaSize( sal_Int64 nAspect ) - throw ( lang::IllegalArgumentException, - embed::WrongStateException, - uno::Exception, - uno::RuntimeException, std::exception ) { ::osl::MutexGuard aGuard( m_aMutex ); CheckInit_WrongState(); @@ -268,8 +233,6 @@ awt::Size SAL_CALL ODummyEmbeddedObject::getVisualAreaSize( sal_Int64 nAspect ) sal_Int32 SAL_CALL ODummyEmbeddedObject::getMapUnit( sal_Int64 nAspect ) - throw ( uno::Exception, - uno::RuntimeException, std::exception) { ::osl::MutexGuard aGuard( m_aMutex ); CheckInit_Runtime(); @@ -285,10 +248,6 @@ sal_Int32 SAL_CALL ODummyEmbeddedObject::getMapUnit( sal_Int64 nAspect ) embed::VisualRepresentation SAL_CALL ODummyEmbeddedObject::getPreferredVisualRepresentation( sal_Int64 ) - throw ( lang::IllegalArgumentException, - embed::WrongStateException, - uno::Exception, - uno::RuntimeException, std::exception ) { ::osl::MutexGuard aGuard( m_aMutex ); CheckInit_WrongState(); @@ -305,11 +264,6 @@ void SAL_CALL ODummyEmbeddedObject::setPersistentEntry( sal_Int32 nEntryConnectionMode, const uno::Sequence< beans::PropertyValue >& /* lArguments */, const uno::Sequence< beans::PropertyValue >& /* lObjArgs */ ) - throw ( lang::IllegalArgumentException, - embed::WrongStateException, - io::IOException, - uno::Exception, - uno::RuntimeException, std::exception ) { ::osl::MutexGuard aGuard( m_aMutex ); if ( m_bDisposed ) @@ -370,11 +324,6 @@ void SAL_CALL ODummyEmbeddedObject::storeToEntry( const uno::Reference< embed::X const OUString& sEntName, const uno::Sequence< beans::PropertyValue >& /* lArguments */, const uno::Sequence< beans::PropertyValue >& /* lObjArgs */ ) - throw ( lang::IllegalArgumentException, - embed::WrongStateException, - io::IOException, - uno::Exception, - uno::RuntimeException, std::exception ) { ::osl::MutexGuard aGuard( m_aMutex ); CheckInit_WrongState(); @@ -392,11 +341,6 @@ void SAL_CALL ODummyEmbeddedObject::storeAsEntry( const uno::Reference< embed::X const OUString& sEntName, const uno::Sequence< beans::PropertyValue >& /* lArguments */, const uno::Sequence< beans::PropertyValue >& /* lObjArgs */ ) - throw ( lang::IllegalArgumentException, - embed::WrongStateException, - io::IOException, - uno::Exception, - uno::RuntimeException, std::exception ) { ::osl::MutexGuard aGuard( m_aMutex ); CheckInit_WrongState(); @@ -417,9 +361,6 @@ void SAL_CALL ODummyEmbeddedObject::storeAsEntry( const uno::Reference< embed::X void SAL_CALL ODummyEmbeddedObject::saveCompleted( sal_Bool bUseNew ) - throw ( embed::WrongStateException, - uno::Exception, - uno::RuntimeException, std::exception ) { ::osl::MutexGuard aGuard( m_aMutex ); CheckInit_WrongState(); @@ -451,8 +392,6 @@ void SAL_CALL ODummyEmbeddedObject::saveCompleted( sal_Bool bUseNew ) sal_Bool SAL_CALL ODummyEmbeddedObject::hasEntry() - throw ( embed::WrongStateException, - uno::RuntimeException, std::exception ) { ::osl::MutexGuard aGuard( m_aMutex ); CheckInit_WrongState(); @@ -470,8 +409,6 @@ sal_Bool SAL_CALL ODummyEmbeddedObject::hasEntry() OUString SAL_CALL ODummyEmbeddedObject::getEntryName() - throw ( embed::WrongStateException, - uno::RuntimeException, std::exception ) { ::osl::MutexGuard aGuard( m_aMutex ); CheckInit_WrongState(); @@ -486,10 +423,6 @@ OUString SAL_CALL ODummyEmbeddedObject::getEntryName() void SAL_CALL ODummyEmbeddedObject::storeOwn() - throw ( embed::WrongStateException, - io::IOException, - uno::Exception, - uno::RuntimeException, std::exception ) { ::osl::MutexGuard aGuard( m_aMutex ); CheckInit_WrongState(); @@ -505,8 +438,6 @@ void SAL_CALL ODummyEmbeddedObject::storeOwn() sal_Bool SAL_CALL ODummyEmbeddedObject::isReadonly() - throw ( embed::WrongStateException, - uno::RuntimeException, std::exception ) { ::osl::MutexGuard aGuard( m_aMutex ); CheckInit_WrongState(); @@ -524,11 +455,6 @@ sal_Bool SAL_CALL ODummyEmbeddedObject::isReadonly() void SAL_CALL ODummyEmbeddedObject::reload( const uno::Sequence< beans::PropertyValue >& /* lArguments */, const uno::Sequence< beans::PropertyValue >& /* lObjArgs */ ) - throw ( lang::IllegalArgumentException, - embed::WrongStateException, - io::IOException, - uno::Exception, - uno::RuntimeException, std::exception ) { ::osl::MutexGuard aGuard( m_aMutex ); CheckInit_WrongState(); @@ -543,7 +469,6 @@ void SAL_CALL ODummyEmbeddedObject::reload( uno::Sequence< sal_Int8 > SAL_CALL ODummyEmbeddedObject::getClassID() - throw ( uno::RuntimeException, std::exception ) { ::osl::MutexGuard aGuard( m_aMutex ); CheckInit_Runtime(); @@ -555,7 +480,6 @@ uno::Sequence< sal_Int8 > SAL_CALL ODummyEmbeddedObject::getClassID() OUString SAL_CALL ODummyEmbeddedObject::getClassName() - throw ( uno::RuntimeException, std::exception ) { ::osl::MutexGuard aGuard( m_aMutex ); if ( m_bDisposed ) @@ -567,15 +491,12 @@ OUString SAL_CALL ODummyEmbeddedObject::getClassName() void SAL_CALL ODummyEmbeddedObject::setClassInfo( const uno::Sequence< sal_Int8 >& /*aClassID*/, const OUString& /*aClassName*/ ) - throw ( lang::NoSupportException, - uno::RuntimeException, std::exception ) { throw lang::NoSupportException(); } uno::Reference< util::XCloseable > SAL_CALL ODummyEmbeddedObject::getComponent() - throw ( uno::RuntimeException, std::exception ) { ::osl::MutexGuard aGuard( m_aMutex ); CheckInit_Runtime(); @@ -585,7 +506,6 @@ uno::Reference< util::XCloseable > SAL_CALL ODummyEmbeddedObject::getComponent() void SAL_CALL ODummyEmbeddedObject::addStateChangeListener( const uno::Reference< embed::XStateChangeListener >& xListener ) - throw ( uno::RuntimeException, std::exception ) { ::osl::MutexGuard aGuard( m_aMutex ); if ( m_bDisposed ) @@ -601,7 +521,6 @@ void SAL_CALL ODummyEmbeddedObject::addStateChangeListener( const uno::Reference void SAL_CALL ODummyEmbeddedObject::removeStateChangeListener( const uno::Reference< embed::XStateChangeListener >& xListener ) - throw (uno::RuntimeException, std::exception) { ::osl::MutexGuard aGuard( m_aMutex ); if ( m_pInterfaceContainer ) @@ -611,8 +530,6 @@ void SAL_CALL ODummyEmbeddedObject::removeStateChangeListener( void SAL_CALL ODummyEmbeddedObject::close( sal_Bool bDeliverOwnership ) - throw ( util::CloseVetoException, - uno::RuntimeException, std::exception ) { ::osl::MutexGuard aGuard( m_aMutex ); if ( m_bDisposed ) @@ -667,7 +584,6 @@ void SAL_CALL ODummyEmbeddedObject::close( sal_Bool bDeliverOwnership ) void SAL_CALL ODummyEmbeddedObject::addCloseListener( const uno::Reference< util::XCloseListener >& xListener ) - throw ( uno::RuntimeException, std::exception ) { ::osl::MutexGuard aGuard( m_aMutex ); if ( m_bDisposed ) @@ -681,7 +597,6 @@ void SAL_CALL ODummyEmbeddedObject::addCloseListener( const uno::Reference< util void SAL_CALL ODummyEmbeddedObject::removeCloseListener( const uno::Reference< util::XCloseListener >& xListener ) - throw (uno::RuntimeException, std::exception) { ::osl::MutexGuard aGuard( m_aMutex ); if ( m_pInterfaceContainer ) @@ -691,7 +606,6 @@ void SAL_CALL ODummyEmbeddedObject::removeCloseListener( const uno::Reference< u void SAL_CALL ODummyEmbeddedObject::addEventListener( const uno::Reference< document::XEventListener >& xListener ) - throw ( uno::RuntimeException, std::exception ) { ::osl::MutexGuard aGuard( m_aMutex ); if ( m_bDisposed ) @@ -705,7 +619,6 @@ void SAL_CALL ODummyEmbeddedObject::addEventListener( const uno::Reference< docu void SAL_CALL ODummyEmbeddedObject::removeEventListener( const uno::Reference< document::XEventListener >& xListener ) - throw ( uno::RuntimeException, std::exception ) { ::osl::MutexGuard aGuard( m_aMutex ); if ( m_pInterfaceContainer ) -- cgit