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)
This commit is contained in:
@@ -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; });
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user