summaryrefslogtreecommitdiff
path: root/sot
diff options
context:
space:
mode:
Diffstat (limited to 'sot')
-rw-r--r--sot/source/sdstor/stgdir.cxx21
-rw-r--r--sot/source/sdstor/stgdir.hxx1
2 files changed, 0 insertions, 22 deletions
diff --git a/sot/source/sdstor/stgdir.cxx b/sot/source/sdstor/stgdir.cxx
index 4852108cfb0c..309c5f896112 100644
--- a/sot/source/sdstor/stgdir.cxx
+++ b/sot/source/sdstor/stgdir.cxx
@@ -672,27 +672,6 @@ bool StgDirEntry::Tmp2Strm()
return true;
}
-// Check if the given entry is contained in this entry
-
-bool StgDirEntry::IsContained( StgDirEntry* pStg )
-{
- if( m_aEntry.GetType() == STG_STORAGE )
- {
- StgIterator aIter( *this );
- StgDirEntry* p = aIter.First();
- while( p )
- {
- if( !p->m_aEntry.Compare( pStg->m_aEntry ) )
- return false;
- if( p->m_aEntry.GetType() == STG_STORAGE )
- if( !p->IsContained( pStg ) )
- return false;
- p = aIter.Next();
- }
- }
- return true;
-}
-
// Invalidate all open entries by setting the RefCount to 0. If the bDel
// flag is set, also set the invalid flag to indicate deletion during the
// next dir stream flush.
diff --git a/sot/source/sdstor/stgdir.hxx b/sot/source/sdstor/stgdir.hxx
index 7559d6882110..95c624c1205b 100644
--- a/sot/source/sdstor/stgdir.hxx
+++ b/sot/source/sdstor/stgdir.hxx
@@ -68,7 +68,6 @@ public:
void Enum( sal_Int32& ); // enumerate entries for iteration
void DelTemp( bool ); // delete temporary entries
bool Store( StgDirStrm& ); // save entry into dir strm
- bool IsContained( StgDirEntry* ); // check if subentry
void SetDirty() { m_bDirty = true; }
bool IsDirty();