binfilter/bf_sw/source/core/bastyp/sw_swcache.cxx | 50 ---------------------- binfilter/bf_sw/source/core/inc/swcache.hxx | 2 2 files changed, 52 deletions(-)
New commits: commit 90788ac6a6b491542708c074832b66a49b701ccd Author: Caolán McNamara <[email protected]> Date: Tue Sep 27 22:22:21 2011 +0100 callcatcher: SwCache::Flush unused diff --git a/binfilter/bf_sw/source/core/bastyp/sw_swcache.cxx b/binfilter/bf_sw/source/core/bastyp/sw_swcache.cxx index 840f59b..0166445 100644 --- a/binfilter/bf_sw/source/core/bastyp/sw_swcache.cxx +++ b/binfilter/bf_sw/source/core/bastyp/sw_swcache.cxx @@ -140,56 +140,6 @@ namespace binfilter { /************************************************************************* |* -|* SwCache::Flush() -|* -|*************************************************************************/ - - -/*N*/ void SwCache::Flush( const BYTE nPercent ) -/*N*/ { -/*N*/ OSL_ENSURE( nPercent == 100, "SwCache::Flush() arbeitet nur 100%'ig" ); -/*N*/ -/*N*/ INCREMENT( nFlushCnt ); -/*N*/ SwCacheObj *pObj = pRealFirst; -/*N*/ pRealFirst = pFirst = pLast = 0; -/*N*/ SwCacheObj *pTmp; -/*N*/ while ( pObj ) -/*N*/ { -/*N*/ #ifdef DBG_UTIL -/*N*/ if ( pObj->IsLocked() ) -/*N*/ { -/*?*/ OSL_ENSURE( TRUE, "Flushing locked objects." ); -/*?*/ if ( !pRealFirst ) -/*?*/ { -/*?*/ pRealFirst = pFirst = pLast = pObj; -/*?*/ pTmp = pObj->GetNext(); -/*?*/ pObj->SetNext( 0 ); pObj->SetPrev( 0 ); -/*?*/ pObj = pTmp; -/*?*/ } -/*?*/ else -/*?*/ { pLast->SetNext( pObj ); -/*?*/ pObj->SetPrev( pLast ); -/*?*/ pLast = pObj; -/*?*/ pTmp = pObj->GetNext(); -/*?*/ pObj->SetNext( 0 ); -/*?*/ pObj = pTmp; -/*?*/ } -/*N*/ } -/*N*/ else -/*N*/ #endif -/*N*/ { -/*N*/ pTmp = (SwCacheObj*)pObj; -/*N*/ pObj = pTmp->GetNext(); -/*N*/ aFreePositions.Insert( pTmp->GetCachePos(), aFreePositions.Count() ); -/*N*/ *(pData + pTmp->GetCachePos()) = (void*)0; -/*N*/ delete pTmp; -/*N*/ INCREMENT( nFlushedObjects ); -/*N*/ } -/*N*/ } -/*N*/ } - -/************************************************************************* -|* |* SwCache::ToTop() |* |*************************************************************************/ diff --git a/binfilter/bf_sw/source/core/inc/swcache.hxx b/binfilter/bf_sw/source/core/inc/swcache.hxx index 544cd61..be608e1 100644 --- a/binfilter/bf_sw/source/core/inc/swcache.hxx +++ b/binfilter/bf_sw/source/core/inc/swcache.hxx @@ -123,8 +123,6 @@ public: SwCache( const USHORT nInitSize, const USHORT nGrowSize ); #endif - void Flush( const BYTE nPercent = 100 ); - //bToTop == FALSE -> Keine LRU-Umsortierung! SwCacheObj *Get( const void *pOwner, const BOOL bToTop = TRUE ); SwCacheObj *Get( const void *pOwner, const USHORT nIndex,
_______________________________________________ Libreoffice-commits mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
