diff options
author | Matúš Kukan <matus.kukan@gmail.com> | 2016-01-04 22:27:23 +0100 |
---|---|---|
committer | Matúš Kukan <matus.kukan@gmail.com> | 2016-01-05 20:41:12 +0100 |
commit | 3b7150c0ab5ca40f88ab8c3b914d601501cbf4e7 (patch) | |
tree | 3ecd1d8081ce7cf4600038ad35d68c47493a66a0 /sot/source/sdstor | |
parent | 5b22663e373f2137c93adcdd2c31c54da2fba663 (diff) |
SotFactory is in fact not used: remove + cleanup
Also SotData_Impl is used only in exchange.cxx now. Move there.
Change-Id: I548095c2226d92aea4193bb1a3671e2381996435
Diffstat (limited to 'sot/source/sdstor')
-rw-r--r-- | sot/source/sdstor/storage.cxx | 70 |
1 files changed, 0 insertions, 70 deletions
diff --git a/sot/source/sdstor/storage.cxx b/sot/source/sdstor/storage.cxx index 63c8cbdb5463..9cdc66ea5e14 100644 --- a/sot/source/sdstor/storage.cxx +++ b/sot/source/sdstor/storage.cxx @@ -36,46 +36,10 @@ #include <unotools/ucbhelper.hxx> #include <comphelper/processfactory.hxx> -#include <factory.hxx> -#include <sotdata.hxx> - #include <memory> using namespace ::com::sun::star; -/************** class SotStorageStream ***********************************/ -class SotStorageStreamFactory : public SotFactory -{ -public: - explicit SotStorageStreamFactory(const SvGlobalName& rName) - : SotFactory(rName) - { - } -}; - -SotFactory * SotStorageStream::ClassFactory() -{ - SotFactory **ppFactory = &(SOTDATA()->pSotStorageStreamFactory); - if( !*ppFactory ) - { - *ppFactory = new SotStorageStreamFactory( - SvGlobalName( 0xd7deb420, 0xf902, 0x11d0, - 0xaa, 0xa1, 0x0, 0xa0, 0x24, 0x9d, 0x55, 0x90 ) ); - (*ppFactory)->PutSuperClass( SotObject::ClassFactory() ); - } - return *ppFactory; -} - -void * SotStorageStream::Cast( const SotFactory * pFact ) -{ - void * pRet = nullptr; - if( !pFact || pFact == ClassFactory() ) - pRet = this; - if( !pRet ) - pRet = SotObject::Cast( pFact ); - return pRet; -} - SvLockBytesRef MakeLockBytes_Impl( const OUString & rName, StreamMode nMode ) { SvLockBytesRef xLB; @@ -291,40 +255,6 @@ bool SotStorageStream::SetProperty( const OUString& rName, const css::uno::Any& } } -/************** class SotStorage ****************************************** -*************************************************************************/ -class SotStorageFactory : public SotFactory -{ -public: - explicit SotStorageFactory(const SvGlobalName & rName) - : SotFactory(rName) - { - } -}; - -SotFactory * SotStorage::ClassFactory() -{ - SotFactory **ppFactory = &(SOTDATA()->pSotStorageFactory); - if( !*ppFactory ) - { - *ppFactory = new SotStorageFactory( - SvGlobalName( 0x980ce7e0, 0xf905, 0x11d0, - 0xaa, 0xa1, 0x0, 0xa0, 0x24, 0x9d, 0x55, 0x90 ) ); - (*ppFactory)->PutSuperClass( SotObject::ClassFactory() ); - } - return *ppFactory; -} - -void * SotStorage::Cast( const SotFactory * pFact ) -{ - void * pRet = nullptr; - if( !pFact || pFact == ClassFactory() ) - pRet = this; - if( !pRet ) - pRet = SotObject::Cast( pFact ); - return pRet; -} - /************************************************************************ |* |* SotStorage::SotStorage() |