vcl/source/app/idle.cxx | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-)
New commits: commit a5728dca0926ccad4f87e62da76483565d70d649 Author: Michael Meeks <michael.me...@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 <c...@libreoffice.org> Reviewed-by: Michael Meeks <michael.me...@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: */ _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits