diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-05-15 11:27:44 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-05-16 08:45:17 +0200 |
commit | 98c4cd372bf0e9d4b5b129405f5af4562d8a0f64 (patch) | |
tree | f3aae749f01d0453a227b922a6ad3217171700d7 /sd | |
parent | 666901bc82fab69f9a80b564f97b5456d0ef684e (diff) |
loplugin:unusedfields improve write-only analysis
by whitelisting a couple of methods we know only write to their
parameters
Change-Id: Id7aef9c03c23d10c27707b21eb9a0db4a6c2757c
Reviewed-on: https://gerrit.libreoffice.org/37647
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/slidesorter/cache/SlsQueueProcessor.cxx | 17 | ||||
-rw-r--r-- | sd/source/ui/slidesorter/cache/SlsQueueProcessor.hxx | 3 |
2 files changed, 0 insertions, 20 deletions
diff --git a/sd/source/ui/slidesorter/cache/SlsQueueProcessor.cxx b/sd/source/ui/slidesorter/cache/SlsQueueProcessor.cxx index a4ba8dd088ee..71e52c5a11f8 100644 --- a/sd/source/ui/slidesorter/cache/SlsQueueProcessor.cxx +++ b/sd/source/ui/slidesorter/cache/SlsQueueProcessor.cxx @@ -33,9 +33,6 @@ QueueProcessor::QueueProcessor ( const SharedCacheContext& rpCacheContext) : maMutex(), maTimer(), - mnTimeBetweenHighPriorityRequests (10/*ms*/), - mnTimeBetweenLowPriorityRequests (100/*ms*/), - mnTimeBetweenRequestsWhenNotIdle (1000/*ms*/), maPreviewSize(rPreviewSize), mbDoSuperSampling(bDoSuperSampling), mpCacheContext(rpCacheContext), @@ -44,20 +41,6 @@ QueueProcessor::QueueProcessor ( maBitmapFactory(), mbIsPaused(false) { - // Look into the configuration if there for overriding values. - css::uno::Any aTimeBetweenReqeusts; - aTimeBetweenReqeusts = CacheConfiguration::Instance()->GetValue("TimeBetweenHighPriorityRequests"); - if (aTimeBetweenReqeusts.has<sal_Int32>()) - aTimeBetweenReqeusts >>= mnTimeBetweenHighPriorityRequests; - - aTimeBetweenReqeusts = CacheConfiguration::Instance()->GetValue("TimeBetweenLowPriorityRequests"); - if (aTimeBetweenReqeusts.has<sal_Int32>()) - aTimeBetweenReqeusts >>= mnTimeBetweenLowPriorityRequests; - - aTimeBetweenReqeusts = CacheConfiguration::Instance()->GetValue("TimeBetweenRequestsDuringShow"); - if (aTimeBetweenReqeusts.has<sal_Int32>()) - aTimeBetweenReqeusts >>= mnTimeBetweenRequestsWhenNotIdle; - maTimer.SetInvokeHandler (LINK(this,QueueProcessor,ProcessRequestHdl)); maTimer.SetTimeout (10); } diff --git a/sd/source/ui/slidesorter/cache/SlsQueueProcessor.hxx b/sd/source/ui/slidesorter/cache/SlsQueueProcessor.hxx index 38984747b1ae..aafe0648062e 100644 --- a/sd/source/ui/slidesorter/cache/SlsQueueProcessor.hxx +++ b/sd/source/ui/slidesorter/cache/SlsQueueProcessor.hxx @@ -93,9 +93,6 @@ private: Timer maTimer; DECL_LINK(ProcessRequestHdl, Timer *, void); - sal_uInt32 mnTimeBetweenHighPriorityRequests; - sal_uInt32 mnTimeBetweenLowPriorityRequests; - sal_uInt32 mnTimeBetweenRequestsWhenNotIdle; Size maPreviewSize; bool mbDoSuperSampling; SharedCacheContext mpCacheContext; |