summaryrefslogtreecommitdiff
path: root/tools/source/ref/pstm.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'tools/source/ref/pstm.cxx')
-rw-r--r--tools/source/ref/pstm.cxx8
1 files changed, 1 insertions, 7 deletions
diff --git a/tools/source/ref/pstm.cxx b/tools/source/ref/pstm.cxx
index c63459209a7d..997512141368 100644
--- a/tools/source/ref/pstm.cxx
+++ b/tools/source/ref/pstm.cxx
@@ -56,7 +56,6 @@ SvPersistStream::SvPersistStream( SvClassManager & rMgr, SvStream * pStream )
, pStm( pStream )
, aPUIdx( 1 )
, nStartIdx( 1 )
- , pRefStm( nullptr )
{
DBG_ASSERT( nStartIdx != 0, "zero index not allowed" );
m_isWritable = true;
@@ -123,10 +122,7 @@ SvPersistStream::Index SvPersistStream::GetIndex( SvPersistBase * pObj ) const
PersistBaseMap::const_iterator it = aPTable.find( pObj );
if( it == aPTable.end() )
{
- if ( pRefStm )
- return pRefStm->GetIndex( pObj );
- else
- return 0;
+ return 0;
}
return it->second;
}
@@ -135,8 +131,6 @@ SvPersistBase * SvPersistStream::GetObject( Index nIdx ) const
{
if( nIdx >= nStartIdx )
return aPUIdx.Get( nIdx );
- else if( pRefStm )
- return pRefStm->GetObject( nIdx );
return nullptr;
}