From 08b0a3c16561cf2978ac112038ed29dbe5072f19 Mon Sep 17 00:00:00 2001 From: kiroukou Date: Fri, 4 Mar 2016 10:17:18 +0100 Subject: [PATCH] Clean Timer.hx (close #700) Just clean the methods that do not seem to be used by current lime (tested with lime NOT legacy on flash, neko, cpp) (not tested with openfl, but if used by this lib, should not be implemented here anyhow) --- haxe/Timer.hx | 31 +------------------------------ 1 file changed, 1 insertion(+), 30 deletions(-) diff --git a/haxe/Timer.hx b/haxe/Timer.hx index a4b1d05fe..fcfaa1f54 100644 --- a/haxe/Timer.hx +++ b/haxe/Timer.hx @@ -1,5 +1,5 @@ package haxe; -#if (!neko && !cpp && !nodejs && !cs) +#if !lime_cffi // Original haxe.Timer class @@ -299,35 +299,6 @@ class Timer { } - @:noCompletion @:dox(hide) public static function __checkTimers () { - - var now = getMS (); - var foundNull = false; - var timer; - - for (i in 0...sRunningTimers.length) { - - timer = sRunningTimers[i]; - - if (timer != null) { - - timer.__check (now); - - } - - foundNull = (foundNull || sRunningTimers[i] == null); - - } - - if (foundNull) { - - sRunningTimers = sRunningTimers.filter (function (val) { return val != null; }); - - } - - } - - }