summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2016-03-23 13:17:09 +0000
committerMichael Meeks <michael.meeks@collabora.com>2016-03-23 16:10:06 +0000
commita5728dca0926ccad4f87e62da76483565d70d649 (patch)
treee9ec9b3646e77d983be19b649d859cd8fb342eae
parentaead01fdc9dcf588203a90685c038319dc408c4f (diff)
vcl: idle timer update method currently unused.
Change-Id: I4bc36592240dd3639e10e6b7c39400b5f52d932d Reviewed-on: https://gerrit.libreoffice.org/23471 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
-rw-r--r--vcl/source/app/idle.cxx18
1 files changed, 3 insertions, 15 deletions
diff --git a/vcl/source/app/idle.cxx b/vcl/source/app/idle.cxx
index 123f37a13e4f..ad9829b97074 100644
--- a/vcl/source/app/idle.cxx
+++ b/vcl/source/app/idle.cxx
@@ -58,22 +58,10 @@ bool Idle::IsIdle() const
return true;
}
-sal_uInt64 Idle::UpdateMinPeriod( sal_uInt64 nMinPeriod, sal_uInt64 /* nTime */ ) const
+sal_uInt64 Idle::UpdateMinPeriod( sal_uInt64 /* nMinPeriod */, sal_uInt64 /* nTime */ ) const
{
- switch (mePriority) {
- case SchedulerPriority::HIGHEST:
- case SchedulerPriority::HIGH:
- case SchedulerPriority::RESIZE:
- case SchedulerPriority::REPAINT:
- nMinPeriod = ImmediateTimeoutMs; // don't wait.
- break;
- default:
- // FIXME: tdf#92036 workaround, I should be 1 too - wait 5ms
- if (nMinPeriod > 5) // only shrink the min. period if nothing is quicker.
- nMinPeriod = 5;
- break;
- }
- return nMinPeriod;
+ assert(false); // idles currently don't hit this.
+ return ImmediateTimeoutMs;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */