diff options
author | Noel Grandin <noel@peralex.com> | 2015-07-23 09:49:57 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-07-24 10:36:20 +0000 |
commit | 38023af6c13602ae1856bea11693c18c0c3efa36 (patch) | |
tree | c17ef3941354f732e2fdd7c3cedb7c649f99e965 /embeddedobj/source/commonembedding | |
parent | 2c6ad5343de947f1646536c539b116346adb8fdc (diff) |
loplugin:unusedmethods
Change-Id: If5090c330e12d6e537766bf4a9be0a2360381a7a
Reviewed-on: https://gerrit.libreoffice.org/17312
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'embeddedobj/source/commonembedding')
-rw-r--r-- | embeddedobj/source/commonembedding/miscobj.cxx | 40 | ||||
-rw-r--r-- | embeddedobj/source/commonembedding/specialobject.cxx | 23 |
2 files changed, 0 insertions, 63 deletions
diff --git a/embeddedobj/source/commonembedding/miscobj.cxx b/embeddedobj/source/commonembedding/miscobj.cxx index 966eb4723f97..f5e4de65b54d 100644 --- a/embeddedobj/source/commonembedding/miscobj.cxx +++ b/embeddedobj/source/commonembedding/miscobj.cxx @@ -404,47 +404,7 @@ void SAL_CALL OCommonEmbeddedObject::release() } -uno::Sequence< uno::Type > SAL_CALL OCommonEmbeddedObject::getTypes() - throw( uno::RuntimeException ) -{ - static ::cppu::OTypeCollection* pTypeCollection = NULL; - - if ( !pTypeCollection ) - { - ::osl::MutexGuard aGuard( ::osl::Mutex::getGlobalMutex() ); - if ( !pTypeCollection ) - { - if ( m_bIsLink ) - { - static ::cppu::OTypeCollection aTypeCollection( - cppu::UnoType<lang::XTypeProvider>::get(), - cppu::UnoType<embed::XEmbeddedObject>::get(), - cppu::UnoType<embed::XInplaceObject>::get(), - cppu::UnoType<embed::XCommonEmbedPersist>::get(), - cppu::UnoType<container::XChild>::get(), - cppu::UnoType<embed::XLinkageSupport>::get()); - - pTypeCollection = &aTypeCollection ; - } - else - { - static ::cppu::OTypeCollection aTypeCollection( - cppu::UnoType<lang::XTypeProvider>::get(), - cppu::UnoType<embed::XEmbeddedObject>::get(), - cppu::UnoType<embed::XInplaceObject>::get(), - cppu::UnoType<embed::XCommonEmbedPersist>::get(), - cppu::UnoType<container::XChild>::get(), - cppu::UnoType<embed::XEmbedPersist>::get(), - cppu::UnoType<embed::XEmbedPersist2>::get()); - - pTypeCollection = &aTypeCollection ; - } - } - } - - return pTypeCollection->getTypes() ; -} uno::Sequence< sal_Int8 > SAL_CALL OCommonEmbeddedObject::getClassID() throw ( uno::RuntimeException, std::exception ) diff --git a/embeddedobj/source/commonembedding/specialobject.cxx b/embeddedobj/source/commonembedding/specialobject.cxx index 39fb7d20f49b..52fcb32074c5 100644 --- a/embeddedobj/source/commonembedding/specialobject.cxx +++ b/embeddedobj/source/commonembedding/specialobject.cxx @@ -73,29 +73,6 @@ uno::Any SAL_CALL OSpecialEmbeddedObject::queryInterface( const uno::Type& rType } -uno::Sequence< uno::Type > SAL_CALL OSpecialEmbeddedObject::getTypes() - throw( uno::RuntimeException ) -{ - static ::cppu::OTypeCollection* pTypeCollection = NULL; - - if ( !pTypeCollection ) - { - ::osl::MutexGuard aGuard( ::osl::Mutex::getGlobalMutex() ); - if ( !pTypeCollection ) - { - static ::cppu::OTypeCollection aTypeCollection( - cppu::UnoType<lang::XTypeProvider>::get(), - cppu::UnoType<embed::XEmbeddedObject>::get(), - cppu::UnoType<embed::XInplaceObject>::get()); - - pTypeCollection = &aTypeCollection ; - } - } - - return pTypeCollection->getTypes() ; - -} - embed::VisualRepresentation SAL_CALL OSpecialEmbeddedObject::getPreferredVisualRepresentation( sal_Int64 nAspect ) throw ( lang::IllegalArgumentException, embed::WrongStateException, |