[Libreoffice-commits] .: svtools/inc svtools/source
Joseph Powers
jpowers at kemper.freedesktop.org
Wed Aug 10 20:16:35 PDT 2011
svtools/inc/svtools/grfmgr.hxx | 8 -------
svtools/source/graphic/grfmgr2.cxx | 42 -------------------------------------
2 files changed, 50 deletions(-)
New commits:
commit c1347b3c33069a6a7d0f387aea941f1fea7ca6cf
Author: Joseph Powers <jpowers27 at cox.net>
Date: Wed Aug 10 20:14:03 2011 -0700
unusedcode.easy: cleanup up of class GraphicManager
diff --git a/svtools/inc/svtools/grfmgr.hxx b/svtools/inc/svtools/grfmgr.hxx
index f756005..b245e7d 100644
--- a/svtools/inc/svtools/grfmgr.hxx
+++ b/svtools/inc/svtools/grfmgr.hxx
@@ -672,21 +672,13 @@ public:
~GraphicManager();
void SetMaxCacheSize( sal_uLong nNewCacheSize );
- sal_uLong GetMaxCacheSize() const;
void SetMaxObjCacheSize(
sal_uLong nNewMaxObjSize,
sal_Bool bDestroyGreaterCached = sal_False
);
- sal_uLong GetMaxObjCacheSize() const;
-
- sal_uLong GetUsedCacheSize() const;
- sal_uLong GetFreeCacheSize() const;
void SetCacheTimeout( sal_uLong nTimeoutSeconds );
- sal_uLong GetCacheTimeout() const;
-
- void ClearCache();
void ReleaseFromCache( const GraphicObject& rObj );
diff --git a/svtools/source/graphic/grfmgr2.cxx b/svtools/source/graphic/grfmgr2.cxx
index b5d7b2b..60c778b 100644
--- a/svtools/source/graphic/grfmgr2.cxx
+++ b/svtools/source/graphic/grfmgr2.cxx
@@ -137,13 +137,6 @@ void GraphicManager::SetMaxCacheSize( sal_uLong nNewCacheSize )
// -----------------------------------------------------------------------------
-sal_uLong GraphicManager::GetMaxCacheSize() const
-{
- return mpCache->GetMaxDisplayCacheSize();
-}
-
-// -----------------------------------------------------------------------------
-
void GraphicManager::SetMaxObjCacheSize( sal_uLong nNewMaxObjSize, sal_Bool bDestroyGreaterCached )
{
mpCache->SetMaxObjDisplayCacheSize( nNewMaxObjSize, bDestroyGreaterCached );
@@ -151,27 +144,6 @@ void GraphicManager::SetMaxObjCacheSize( sal_uLong nNewMaxObjSize, sal_Bool bDes
// -----------------------------------------------------------------------------
-sal_uLong GraphicManager::GetMaxObjCacheSize() const
-{
- return mpCache->GetMaxObjDisplayCacheSize();
-}
-
-// -----------------------------------------------------------------------------
-
-sal_uLong GraphicManager::GetUsedCacheSize() const
-{
- return mpCache->GetUsedDisplayCacheSize();
-}
-
-// -----------------------------------------------------------------------------
-
-sal_uLong GraphicManager::GetFreeCacheSize() const
-{
- return mpCache->GetFreeDisplayCacheSize();
-}
-
-// -----------------------------------------------------------------------------
-
void GraphicManager::SetCacheTimeout( sal_uLong nTimeoutSeconds )
{
mpCache->SetCacheTimeout( nTimeoutSeconds );
@@ -179,20 +151,6 @@ void GraphicManager::SetCacheTimeout( sal_uLong nTimeoutSeconds )
// -----------------------------------------------------------------------------
-sal_uLong GraphicManager::GetCacheTimeout() const
-{
- return mpCache->GetCacheTimeout();
-}
-
-// -----------------------------------------------------------------------------
-
-void GraphicManager::ClearCache()
-{
- mpCache->ClearDisplayCache();
-}
-
-// -----------------------------------------------------------------------------
-
void GraphicManager::ReleaseFromCache( const GraphicObject& /*rObj*/ )
{
// !!!
More information about the Libreoffice-commits
mailing list