Remove Lime legacy/hybrid mode

This commit is contained in:
Joshua Granick
2016-05-18 22:17:06 -07:00
parent 6b83072519
commit cf1d25d950
372 changed files with 23 additions and 102728 deletions

View File

@@ -195,9 +195,7 @@ private class TimerTask extends java.util.TimerTask {
#else
#if !lime_legacy
import lime.system.System;
#end
class Timer {
@@ -238,11 +236,7 @@ class Timer {
private static function getMS ():Float {
#if lime_legacy
return lime_time_stamp () * 1000.0;
#else
return System.getTimer ();
#end
}
@@ -266,11 +260,7 @@ class Timer {
public static function stamp ():Float {
#if lime_legacy
return lime_time_stamp ();
#else
return System.getTimer () / 1000;
#end
}
@@ -338,51 +328,6 @@ class Timer {
}
#if (lime_legacy || lime_hybrid)
@:noCompletion @:dox(hide) public static function __nextWake (limit:Float):Float {
var now = getMS ();
var sleep;
for (timer in sRunningTimers) {
if (timer == null)
continue;
sleep = timer.mFireAt - now;
if (sleep < limit) {
limit = sleep;
if (limit < 0) {
return 0;
}
}
}
return limit * 0.001;
}
#end
// Native Methods
#if lime_legacy
static var lime_time_stamp:Void->Float = flash.Lib.load ("lime-legacy", "lime_legacy_time_stamp", 0);
#end
}