diff options
Diffstat (limited to 'include/ucbhelper')
-rw-r--r-- | include/ucbhelper/macros.hxx | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/include/ucbhelper/macros.hxx b/include/ucbhelper/macros.hxx index 6104738ca324..6f9311e8657f 100644 --- a/include/ucbhelper/macros.hxx +++ b/include/ucbhelper/macros.hxx @@ -185,17 +185,6 @@ Class::getSupportedServiceNames() \ return getSupportedServiceNames_Static(); \ } -#define XSERVICEINFO_CREATE_INSTANCE_IMPL_CTX( Class ) \ -static css::uno::Reference< css::uno::XInterface > SAL_CALL \ -Class##_CreateInstance( const css::uno::Reference< css::lang::XMultiServiceFactory> & rSMgr ) \ - throw( css::uno::Exception ) \ -{ \ - css::lang::XServiceInfo* pX = \ - static_cast<css::lang::XServiceInfo*>(new Class( ucbhelper::getComponentContext(rSMgr) )); \ - return css::uno::Reference< css::uno::XInterface >::query( pX ); \ -} - - // XServiceInfo impl. @@ -224,20 +213,6 @@ Class::getSupportedServiceNames_Static() \ return { Service1 }; \ } -// Service with service factory. - -// 1 service name -#define XSERVICEINFO_IMPL_1_CTX( Class, ImplName, Service1 ) \ -XSERVICEINFO_COMMOM_IMPL( Class, ImplName ) \ -XSERVICEINFO_CREATE_INSTANCE_IMPL_CTX( Class ) \ - \ -css::uno::Sequence< OUString > \ -Class::getSupportedServiceNames_Static() \ -{ \ - css::uno::Sequence< OUString > aSNS { Service1 }; \ - return aSNS; \ -} - #endif /* ! INCLUDED_UCBHELPER_MACROS_HXX */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |