diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2012-04-09 13:00:31 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2012-04-09 13:00:31 +0200 |
commit | b42c792f50ed11a3efc9c20a4e7eed5163fdaed7 (patch) | |
tree | a1b162d2127002b0590bee841c905886842d29e4 /sd | |
parent | b3e2cbc68f3501d3925f8789b1addc8ad4f8e9c0 (diff) |
Remove some unused methods
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/inc/View.hxx | 2 | ||||
-rw-r--r-- | sd/source/ui/slidesorter/cache/SlsGenericPageCache.cxx | 37 | ||||
-rw-r--r-- | sd/source/ui/slidesorter/cache/SlsGenericPageCache.hxx | 6 | ||||
-rw-r--r-- | sd/source/ui/view/sdview4.cxx | 53 |
4 files changed, 0 insertions, 98 deletions
diff --git a/sd/source/ui/inc/View.hxx b/sd/source/ui/inc/View.hxx index 92ba1d1ee71a..3e712523a161 100644 --- a/sd/source/ui/inc/View.hxx +++ b/sd/source/ui/inc/View.hxx @@ -161,8 +161,6 @@ public: void SetMarkedOriginalSize(); - void LockRedraw(sal_Bool bLock); - sal_Bool IsMorphingAllowed() const; sal_Bool IsVectorizeAllowed() const; diff --git a/sd/source/ui/slidesorter/cache/SlsGenericPageCache.cxx b/sd/source/ui/slidesorter/cache/SlsGenericPageCache.cxx index 5bedbf889767..db3f12d377ab 100644 --- a/sd/source/ui/slidesorter/cache/SlsGenericPageCache.cxx +++ b/sd/source/ui/slidesorter/cache/SlsGenericPageCache.cxx @@ -263,43 +263,6 @@ bool GenericPageCache::InvalidatePreviewBitmap (const CacheKey aKey) return false; } - - - -void GenericPageCache::ReleasePreviewBitmap (const CacheKey aKey) -{ - if (mpBitmapCache.get() != NULL) - { - // Suspend the queue processing temporarily to avoid the reinsertion - // of the request that is to be deleted. - mpQueueProcessor->Stop(); - - maRequestQueue.RemoveRequest(aKey); - mpQueueProcessor->RemoveRequest(aKey); - - // Resume the queue processing. - if ( ! maRequestQueue.IsEmpty()) - { - try - { - mpQueueProcessor->Start(maRequestQueue.GetFrontPriorityClass()); - } - catch (const ::com::sun::star::uno::RuntimeException&) - { - } - } - } - - // We do not relase the preview bitmap that is associated with the page - // of the given request data because this method is called when the - // request data, typically a view-object-contact object, is destroyed. - // The page object usually lives longer than that and thus the preview - // bitmap may be used later on. -} - - - - void GenericPageCache::InvalidateCache (const bool bUpdateCache) { if (mpBitmapCache) diff --git a/sd/source/ui/slidesorter/cache/SlsGenericPageCache.hxx b/sd/source/ui/slidesorter/cache/SlsGenericPageCache.hxx index f4dd4900b6ad..233a74e3f1eb 100644 --- a/sd/source/ui/slidesorter/cache/SlsGenericPageCache.hxx +++ b/sd/source/ui/slidesorter/cache/SlsGenericPageCache.hxx @@ -120,12 +120,6 @@ public: */ bool InvalidatePreviewBitmap (const CacheKey aKey); - /** Call this method when a view-object-contact object is being deleted - and does not need (a) its current bitmap in the cache and (b) a - requested a new bitmap. - */ - void ReleasePreviewBitmap (const CacheKey aKey); - /** Call this method when all preview bitmaps have to be generated anew. This is the case when the size of the page objects on the screen has changed or when the model has changed. diff --git a/sd/source/ui/view/sdview4.cxx b/sd/source/ui/view/sdview4.cxx index 030c9f632a94..395ddd392fcc 100644 --- a/sd/source/ui/view/sdview4.cxx +++ b/sd/source/ui/view/sdview4.cxx @@ -576,59 +576,6 @@ IMPL_LINK_NOARG(View, DropErrorHdl) #pragma optimize ( "", on ) #endif -/************************************************************************* -|* -|* Redraw sperren oder erlauben -|* -\************************************************************************/ - -void View::LockRedraw(sal_Bool bLock) -{ - if (bLock) - { - mnLockRedrawSmph++; - DBG_ASSERT(mnLockRedrawSmph, "Ueberlauf im LockRedraw"); - } - else - { - DBG_ASSERT(mnLockRedrawSmph, "Unterlauf im LockRedraw"); - mnLockRedrawSmph--; - - // alle gespeicherten Redraws ausfuehren - if (!mnLockRedrawSmph) - { - boost::ptr_vector<SdViewRedrawRec>::iterator iter; - - while (!maLockedRedraws.empty()) - { - iter = maLockedRedraws.begin(); - - OutputDevice* pCurrentOut = iter->mpOut; - Rectangle aBoundRect(iter->aRect); - - iter = maLockedRedraws.erase(iter); - - while (iter != maLockedRedraws.end()) - { - if (iter->mpOut == pCurrentOut) - { - aBoundRect.Union(iter->aRect); - iter = maLockedRedraws.erase(iter); - } - else - { - ++iter; - } - } - - CompleteRedraw(pCurrentOut, Region(aBoundRect)); - } - } - } -} - - - /************************************************************************* |* |