summaryrefslogtreecommitdiff
path: root/svtools/source/graphic/grfcache.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-08-24 22:14:27 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-08-25 09:04:26 +0200
commit1b694dad643334ec1bab3f823dcd68f44a05ebe3 (patch)
treec1b6045ae9d5497e2d28642b95b2d88f9cc14d81 /svtools/source/graphic/grfcache.cxx
parentde2ac128da025502c533f8cede5862e054dd9c44 (diff)
loplugin:unusedmethods
Change-Id: Iaaf9092ec4d6189492906648b84494d087fed81f Reviewed-on: https://gerrit.libreoffice.org/41539 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svtools/source/graphic/grfcache.cxx')
-rw-r--r--svtools/source/graphic/grfcache.cxx24
1 files changed, 0 insertions, 24 deletions
diff --git a/svtools/source/graphic/grfcache.cxx b/svtools/source/graphic/grfcache.cxx
index 14abb1d6e428..c5995a141b22 100644
--- a/svtools/source/graphic/grfcache.cxx
+++ b/svtools/source/graphic/grfcache.cxx
@@ -1017,30 +1017,6 @@ void GraphicCache::SetMaxDisplayCacheSize( sal_uLong nNewCacheSize )
ImplFreeDisplayCacheSpace( GetUsedDisplayCacheSize() - GetMaxDisplayCacheSize() );
}
-void GraphicCache::SetMaxObjDisplayCacheSize( sal_uLong nNewMaxObjSize )
-{
- const bool bDestroy = nNewMaxObjSize < mnMaxObjDisplaySize;
-
- mnMaxObjDisplaySize = std::min( nNewMaxObjSize, mnMaxDisplaySize );
-
- if( bDestroy )
- {
- GraphicDisplayCacheEntryList::iterator it = maDisplayCache.begin();
- while( it != maDisplayCache.end() )
- {
- GraphicDisplayCacheEntry* pCacheObj = *it;
- if( pCacheObj->GetCacheSize() > mnMaxObjDisplaySize )
- {
- mnUsedDisplaySize -= pCacheObj->GetCacheSize();
- it = maDisplayCache.erase( it );
- delete pCacheObj;
- }
- else
- ++it;
- }
- }
-}
-
void GraphicCache::SetCacheTimeout( sal_uLong nTimeoutSeconds )
{
if( mnReleaseTimeoutSeconds != nTimeoutSeconds )