diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-10-16 08:12:19 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-10-16 08:13:33 +0200 |
commit | aef6ab2098f065f1cee102538776dd99d9db3b0f (patch) | |
tree | a7521309cb9263e07e3f62c498b2cca4432d052a /tools | |
parent | d2ed493a4c0285ff711fcbb86abe6f7025cfd072 (diff) |
Strip svidl down to what is still used
...the generated .ilb, .lst, and .sid outputs requested by SdiTarget were
apparently unused.
Change-Id: I1abb2abc7945070451fce4a98a11d955515e3f63
Diffstat (limited to 'tools')
-rw-r--r-- | tools/source/ref/pstm.cxx | 79 |
1 files changed, 0 insertions, 79 deletions
diff --git a/tools/source/ref/pstm.cxx b/tools/source/ref/pstm.cxx index bba75a224881..f6589f540669 100644 --- a/tools/source/ref/pstm.cxx +++ b/tools/source/ref/pstm.cxx @@ -42,85 +42,6 @@ SvCreateInstancePersist SvClassManager::Get( sal_Int32 nClassId ) // SvRttiBase TYPEINIT0( SvRttiBase ); -// SvPersistBaseMemberList - -#define PERSIST_LIST_VER (sal_uInt8)0 -#define PERSIST_LIST_DBGUTIL (sal_uInt8)0x80 - -void TOOLS_DLLPUBLIC WritePersistListObjects(const SvPersistListWriteable& rList, SvPersistStream & rStm, bool bOnlyStreamed ) -{ -#ifdef STOR_NO_OPTIMIZE - rStm.WriteUChar( (PERSIST_LIST_VER | PERSIST_LIST_DBGUTIL) ); - sal_uInt32 nObjPos = rStm.WriteDummyLen(); -#else - sal_uInt8 bTmp = PERSIST_LIST_VER; - rStm << bTmp; -#endif - sal_uInt32 nCountMember = rList.size(); - sal_uIntPtr nCountPos = rStm.Tell(); - sal_uInt32 nWriteCount = 0; - rStm.WriteUInt32( nCountMember ); - // Don't change the list, as it causes side-effects while saving - for( sal_uIntPtr n = 0; n < nCountMember; n++ ) - { - SvPersistBase * pObj = rList.GetPersistBase( n ); - if( !bOnlyStreamed || rStm.IsStreamed( pObj ) ) - { // Object should be stored - WriteSvPersistBase(rStm, pObj); - nWriteCount++; - } - } - if( nWriteCount != nCountMember ) - { - // Didn't write all members, adjust count - sal_uIntPtr nPos = rStm.Tell(); - rStm.Seek( nCountPos ); - rStm.WriteUInt32( nWriteCount ); - rStm.Seek( nPos ); - } -#ifdef STOR_NO_OPTIMIZE - rStm.WriteLen( nObjPos ); -#endif -} - -void TOOLS_DLLPUBLIC ReadObjects( SvPersistListReadable& rLst, SvPersistStream & rStm ) -{ - sal_uInt8 nVer; - rStm.ReadUChar( nVer ); - - if( (nVer & ~PERSIST_LIST_DBGUTIL) != PERSIST_LIST_VER ) - { - rStm.SetError( SVSTREAM_GENERALERROR ); - OSL_FAIL( "persist list, false version" ); - } - - sal_uInt32 nObjLen(0), nObjPos(0); - if( nVer & PERSIST_LIST_DBGUTIL ) - nObjLen = rStm.ReadLen( &nObjPos ); - - sal_uInt32 nCount; - rStm.ReadUInt32( nCount ); - for( sal_uIntPtr n = 0; n < nCount && rStm.GetError() == SVSTREAM_OK; n++ ) - { - SvPersistBase * pObj; - rStm >> pObj; - if( pObj ) - rLst.push_back( pObj ); - } -#ifdef DBG_UTIL - if( nObjLen + nObjPos != rStm.Tell() ) - { - OStringBuffer aStr("false list len: read = "); - aStr.append(static_cast<sal_Int64>(rStm.Tell() - nObjPos)); - aStr.append(", should = "); - aStr.append(static_cast<sal_Int64>(nObjLen)); - OSL_FAIL(aStr.getStr()); - } -#else - (void)nObjLen; -#endif -} - /** Constructor @param rMgr Stores factories for objects that can persisted |