diff options
author | Szabolcs Dezsi <dezsiszabi@hotmail.com> | 2012-02-27 11:23:51 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-02-27 11:23:51 +0000 |
commit | 2b179ca1744d12630488619f948e5eb860e1fb41 (patch) | |
tree | ea71499aee7ec222439a731578cd409c1efda571 /tools | |
parent | c58882fda80b63baac3360001b0fdf251d96e0eb (diff) |
Removed unused code
Diffstat (limited to 'tools')
-rw-r--r-- | tools/inc/tools/pstm.hxx | 4 | ||||
-rw-r--r-- | tools/source/ref/pstm.cxx | 55 |
2 files changed, 0 insertions, 59 deletions
diff --git a/tools/inc/tools/pstm.hxx b/tools/inc/tools/pstm.hxx index e557b6338719..125875cac8c4 100644 --- a/tools/inc/tools/pstm.hxx +++ b/tools/inc/tools/pstm.hxx @@ -216,8 +216,6 @@ public: SvPersistStream( SvClassManager &, SvStream * pStream, sal_uInt32 nStartIdx = 1 ); - SvPersistStream( SvClassManager &, SvStream * pStream, - const SvPersistStream & rPersStm ); ~SvPersistStream(); void SetStream( SvStream * pStream ); @@ -246,8 +244,6 @@ public: // gespeichert werden. friend SvStream& operator >> ( SvStream &, SvPersistStream & ); friend SvStream& operator << ( SvStream &, SvPersistStream & ); - sal_uIntPtr InsertObj( SvPersistBase * ); - sal_uIntPtr RemoveObj( SvPersistBase * ); }; #endif // _PSTM_HXX diff --git a/tools/source/ref/pstm.cxx b/tools/source/ref/pstm.cxx index 6a0b17c79c42..4956a6aa46f5 100644 --- a/tools/source/ref/pstm.cxx +++ b/tools/source/ref/pstm.cxx @@ -197,44 +197,6 @@ SvPersistStream::SvPersistStream } //========================================================================= -SvPersistStream::SvPersistStream -( - SvClassManager & rMgr, /* Alle Factorys, deren Objekt geladen und - gespeichert werdn k"onnen */ - SvStream * pStream, /* Dieser Stream wird als Medium genommen, auf - dem der PersistStream arbeitet */ - const SvPersistStream & rPersStm - /* Wenn PersistStream's verschachtelt werden, - dann ist dies der Parent-Stream. */ -) - : rClassMgr( rMgr ) - , pStm( pStream ) - // Bereiche nicht ueberschneiden, deshalb nur groessere Indexe - , aPUIdx( rPersStm.GetCurMaxIndex() +1 ) - , nStartIdx( rPersStm.GetCurMaxIndex() +1 ) - , pRefStm( &rPersStm ) - , nFlags( 0 ) -/* [Beschreibung] - - Der Konstruktor der Klasse SvPersistStream. Die Objekte rMgr und - pStream d"urfen nicht ver"andert werden, solange sie in einem - SvPersistStream eingesetzt sind. Eine Aussnahme gibt es f"ur - pStream (siehe <SvPersistStream::SetStream>). - Durch diesen Konstruktor wird eine Hierarchiebildung unterst"utzt. - Alle Objekte aus einer Hierarchie m"ussen erst geladen werden, - wenn das erste aus dieser Hierarchie benutzt werden soll. -*/ -{ - bIsWritable = sal_True; - if( pStm ) - { - SetVersion( pStm->GetVersion() ); - SetError( pStm->GetError() ); - SyncSvStream( pStm->Tell() ); - } -} - -//========================================================================= SvPersistStream::~SvPersistStream() /* [Beschreibung] @@ -900,21 +862,4 @@ SvStream& operator >> return rStm; } -//========================================================================= -sal_uIntPtr SvPersistStream::InsertObj( SvPersistBase * pObj ) -{ - sal_uIntPtr nId = aPUIdx.Insert( pObj ); - aPTable.Insert( (sal_uIntPtr)pObj, (void *)nId ); - return nId; -} - -//========================================================================= -sal_uIntPtr SvPersistStream::RemoveObj( SvPersistBase * pObj ) -{ - sal_uIntPtr nIdx = GetIndex( pObj ); - aPUIdx.Remove( nIdx ); - aPTable.Remove( (sal_uIntPtr)pObj ); - return nIdx; -} - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |