diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-11-28 10:10:40 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-11-29 07:28:57 +0100 |
commit | a566fd1c1a50f9bcb4c69a19bdf4fb1955285d93 (patch) | |
tree | 13273efcf8aa69ce39a1860dc3d111c071e6a7b3 /sot/source | |
parent | 411260d836e7bf6c693b9b7d16af1b36184133af (diff) |
loplugin:unusedmethods
Change-Id: I2efb5c0e5735c179314c6c5de87821cee3b033e1
Reviewed-on: https://gerrit.libreoffice.org/45386
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sot/source')
-rw-r--r-- | sot/source/sdstor/stgdir.cxx | 21 | ||||
-rw-r--r-- | sot/source/sdstor/stgdir.hxx | 1 |
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(); |