[Libreoffice-commits] core.git: vcl/source
Michael Meeks
michael.meeks at collabora.com
Wed Mar 23 16:10:36 UTC 2016
vcl/source/app/idle.cxx | 18 +++---------------
1 file changed, 3 insertions(+), 15 deletions(-)
New commits:
commit a5728dca0926ccad4f87e62da76483565d70d649
Author: Michael Meeks <michael.meeks at collabora.com>
Date: Wed Mar 23 13:17:09 2016 +0000
vcl: idle timer update method currently unused.
Change-Id: I4bc36592240dd3639e10e6b7c39400b5f52d932d
Reviewed-on: https://gerrit.libreoffice.org/23471
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Michael Meeks <michael.meeks at collabora.com>
diff --git a/vcl/source/app/idle.cxx b/vcl/source/app/idle.cxx
index 123f37a..ad9829b 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: */
More information about the Libreoffice-commits
mailing list